Skip to main content

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​

NameSummary
deriveAddressabstract fun deriveAddress(): Address
Derive the Address of the public key that produced this signature.
ed25519PublicKeyabstract fun ed25519PublicKey(): Ed25519PublicKey
ed25519Signatureabstract fun ed25519Signature(): Ed25519Signature
isEd25519abstract fun isEd25519(): Boolean
isSecp256k1abstract fun isSecp256k1(): Boolean
isSecp256r1abstract fun isSecp256r1(): Boolean
optEd25519PublicKeyabstract fun optEd25519PublicKey(): Ed25519PublicKey?
optEd25519Signatureabstract fun optEd25519Signature(): Ed25519Signature?
optSecp256k1PublicKeyabstract fun optSecp256k1PublicKey(): Secp256k1PublicKey?
optSecp256k1Signatureabstract fun optSecp256k1Signature(): Secp256k1Signature?
optSecp256r1PublicKeyabstract fun optSecp256r1PublicKey(): Secp256r1PublicKey?
optSecp256r1Signatureabstract fun optSecp256r1Signature(): Secp256r1Signature?
schemeabstract fun scheme(): SignatureScheme
secp256k1PublicKeyabstract fun secp256k1PublicKey(): Secp256k1PublicKey
secp256k1Signatureabstract fun secp256k1Signature(): Secp256k1Signature
secp256r1PublicKeyabstract fun secp256r1PublicKey(): Secp256r1PublicKey
secp256r1Signatureabstract fun secp256r1Signature(): Secp256r1Signature
signatureBytesabstract fun signatureBytes(): ByteArray
The raw signature bytes, without the scheme flag or the public key.
toBase64abstract fun toBase64(): String
Base64-encode this signature as its `flag
toBcsabstract fun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toBytesabstract fun toBytes(): ByteArray
toDisplayStringabstract fun toDisplayString(): String
Render this type as human-readable text.
toJsonabstract fun toJson(): String
Convert this type to a JSON encoded string.
toPublicKeyabstract fun toPublicKey(): PublicKey
The public key embedded in this signature.