SimpleSignatureInterface
interface SimpleSignatureInterface
A basic signature
This enumeration defines the set of simple or basic signature schemes supported by IOTA. Most signature schemes supported by IOTA end up comprising of a at least one simple signature scheme.
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
| SimpleSignature |
Functions
| Name | Summary |
|---|---|
| deriveAddress | abstract fun deriveAddress(): Address Derive the Address of the public key that produced this signature. |
| ed25519PublicKey | abstract fun ed25519PublicKey(): Ed25519PublicKey |
| ed25519Signature | abstract fun ed25519Signature(): Ed25519Signature |
| isEd25519 | abstract fun isEd25519(): Boolean |
| isSecp256k1 | abstract fun isSecp256k1(): Boolean |
| isSecp256r1 | abstract fun isSecp256r1(): Boolean |
| optEd25519PublicKey | abstract fun optEd25519PublicKey(): Ed25519PublicKey? |
| optEd25519Signature | abstract fun optEd25519Signature(): Ed25519Signature? |
| optSecp256k1PublicKey | abstract fun optSecp256k1PublicKey(): Secp256k1PublicKey? |
| optSecp256k1Signature | abstract fun optSecp256k1Signature(): Secp256k1Signature? |
| optSecp256r1PublicKey | abstract fun optSecp256r1PublicKey(): Secp256r1PublicKey? |
| optSecp256r1Signature | abstract fun optSecp256r1Signature(): Secp256r1Signature? |
| scheme | abstract fun scheme(): SignatureScheme |
| secp256k1PublicKey | abstract fun secp256k1PublicKey(): Secp256k1PublicKey |
| secp256k1Signature | abstract fun secp256k1Signature(): Secp256k1Signature |
| secp256r1PublicKey | abstract fun secp256r1PublicKey(): Secp256r1PublicKey |
| secp256r1Signature | abstract fun secp256r1Signature(): Secp256r1Signature |
| signatureBytes | abstract fun signatureBytes(): ByteArray The raw signature bytes, without the scheme flag or the public key. |
| toBase64 | abstract fun toBase64(): String Base64-encode this signature as its `flag |
| 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. |
| toPublicKey | abstract fun toPublicKey(): PublicKey The public key embedded in this signature. |