public class Structures
Modifier and Type | Field and Description |
---|---|
static int |
MAX_ISSUER_REF_SIZE
The maximum permissible size of an issuer reference.
|
Modifier and Type | Method and Description |
---|---|
static SecureHash |
hash(ContractState $receiver)
Returns the SHA-256 hash of the serialised contents of this state (not cached!)
|
static SecureHash |
hash(ContractState $receiver,
java.lang.String algorithm)
Returns the hash of the serialised contents of this state (not cached!)
|
static <T> Amount<T> |
withoutIssuer(Amount<net.corda.core.contracts.Issued> $receiver)
Strips the issuer and returns an
class Amount of the raw token directly. This is useful when you are mixing code that
cares about specific issuers with code that will accept any, or which is imposing issuer constraints via some
other mechanism and the additional type safety is not wanted. |
public static int MAX_ISSUER_REF_SIZE
The maximum permissible size of an issuer reference.
public static <T> Amount<T> withoutIssuer(Amount<net.corda.core.contracts.Issued> $receiver)
Strips the issuer and returns an class Amount
of the raw token directly. This is useful when you are mixing code that
cares about specific issuers with code that will accept any, or which is imposing issuer constraints via some
other mechanism and the additional type safety is not wanted.
class Amount
public static SecureHash hash(ContractState $receiver)
Returns the SHA-256 hash of the serialised contents of this state (not cached!)
public static SecureHash hash(ContractState $receiver, java.lang.String algorithm)
Returns the hash of the serialised contents of this state (not cached!)