Skip to main content

Interface: SimpleSignatureLike

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.

Methods​

deriveAddress()​

deriveAddress(): AddressLike;

Derive the Address of the public key that produced this signature.

Returns​

AddressLike


ed25519PublicKey()​

ed25519PublicKey(): Ed25519PublicKeyLike;

Returns​

Ed25519PublicKeyLike


ed25519Signature()​

ed25519Signature(): Ed25519SignatureLike;

Returns​

Ed25519SignatureLike


isEd25519()​

isEd25519(): boolean;

Returns​

boolean


isSecp256k1()​

isSecp256k1(): boolean;

Returns​

boolean


isSecp256r1()​

isSecp256r1(): boolean;

Returns​

boolean


optEd25519PublicKey()​

optEd25519PublicKey(): Ed25519PublicKeyLike | undefined;

Returns​

Ed25519PublicKeyLike | undefined


optEd25519Signature()​

optEd25519Signature(): Ed25519SignatureLike | undefined;

Returns​

Ed25519SignatureLike | undefined


optSecp256k1PublicKey()​

optSecp256k1PublicKey(): 
| Secp256k1PublicKeyLike
| undefined;

Returns​

| Secp256k1PublicKeyLike | undefined


optSecp256k1Signature()​

optSecp256k1Signature(): 
| Secp256k1SignatureLike
| undefined;

Returns​

| Secp256k1SignatureLike | undefined


optSecp256r1PublicKey()​

optSecp256r1PublicKey(): 
| Secp256r1PublicKeyLike
| undefined;

Returns​

| Secp256r1PublicKeyLike | undefined


optSecp256r1Signature()​

optSecp256r1Signature(): 
| Secp256r1SignatureLike
| undefined;

Returns​

| Secp256r1SignatureLike | undefined


scheme()​

scheme(): SignatureScheme;

Returns​

SignatureScheme


secp256k1PublicKey()​

secp256k1PublicKey(): Secp256k1PublicKeyLike;

Returns​

Secp256k1PublicKeyLike


secp256k1Signature()​

secp256k1Signature(): Secp256k1SignatureLike;

Returns​

Secp256k1SignatureLike


secp256r1PublicKey()​

secp256r1PublicKey(): Secp256r1PublicKeyLike;

Returns​

Secp256r1PublicKeyLike


secp256r1Signature()​

secp256r1Signature(): Secp256r1SignatureLike;

Returns​

Secp256r1SignatureLike


signatureBytes()​

signatureBytes(): ArrayBuffer;

The raw signature bytes, without the scheme flag or the public key.

Returns​

ArrayBuffer


toBase64()​

toBase64(): string;

Base64-encode this signature as its flag || sig || pubkey bytes.

Returns​

string


toBcs()​

toBcs(): ArrayBuffer;

Convert this type to BCS encoded bytes.

Returns​

ArrayBuffer


toBytes()​

toBytes(): ArrayBuffer;

Returns​

ArrayBuffer


toDisplayString()​

toDisplayString(): string;

Render this type as human-readable text.

Some types also print this through the binding's native string conversion; this method is the spelling every object type has.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

Returns​

string


toJson()​

toJson(): string;

Convert this type to a JSON encoded string.

Returns​

string


toPublicKey()​

toPublicKey(): PublicKeyLike;

The public key embedded in this signature.

Returns​

PublicKeyLike