UserSignatureInterface
interface UserSignatureInterface
A signature from a user
A UserSignature is most commonly used to authorize the execution and inclusion of a transaction to the blockchain.
BCS
The BCS serialized form of this type is specified in bcs-schema.abnf.
Note: Due to historical reasons, signatures are serialized slightly different from the majority of the types in IOTA. In particular if a signature is ever embedded in another structure it generally is serialized as bytes meaning it has a length prefix that defines the length of the completely serialized signature.
Inheritors
| UserSignature |
Functions
| Name | Summary |
|---|---|
| asMoveAuthenticator | abstract fun asMoveAuthenticator(): MoveAuthenticator Convert this signature into a move authenticator if it is one, or panic otherwise |
| asMultisig | abstract fun asMultisig(): MultisigAggregatedSignature Convert this signature into a multisig aggregated signature if it is one, or panic otherwise |
| asOptMoveAuthenticator | abstract fun asOptMoveAuthenticator(): MoveAuthenticator? Convert this signature into a move authenticator if it is one, or return None otherwise |
| asOptMultisig | abstract fun asOptMultisig(): MultisigAggregatedSignature? Convert this signature into a multisig aggregated signature if it is one, or return None otherwise |
| asOptPasskeyAuthenticator | abstract fun asOptPasskeyAuthenticator(): PasskeyAuthenticator? Convert this signature into a passkey authenticator if it is one, or return None otherwise |
| asOptSimple | abstract fun asOptSimple(): SimpleSignature? Convert this signature into a simple signature if it is one, or return None otherwise |
| asPasskeyAuthenticator | abstract fun asPasskeyAuthenticator(): PasskeyAuthenticator Convert this signature into a passkey authenticator if it is one, or panic otherwise |
| asSimple | abstract fun asSimple(): SimpleSignature Convert this signature into a simple signature if it is one, or panic otherwise |
| deriveAddress | abstract fun deriveAddress(): Address Derive the Address of the signer that this signature authenticates. |
| isMoveAuthenticator | abstract fun isMoveAuthenticator(): Boolean Check if this signature is a move authenticator |
| isMultisig | abstract fun isMultisig(): Boolean Check if this signature is a multisig aggregated signature |
| isPasskeyAuthenticator | abstract fun isPasskeyAuthenticator(): Boolean Check if this signature is a passkey authenticator |
| isSimple | abstract fun isSimple(): Boolean Check if this signature is a simple signature |
| scheme | abstract fun scheme(): SignatureScheme Return the flag for this signature scheme |
| toBase64 | abstract fun toBase64(): String |
| toBcs | abstract fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toBytes | abstract fun toBytes(): ByteArray |
| toDisplayString | abstract fun toDisplayString(): String Render this type as human-readable text. |
| toJson | abstract fun toJson(): String Convert this type to a JSON encoded string. |