SimpleSignature
Namespace: IotaSdk
public class SimpleSignature : ISimpleSignature, System.IEquatable`1[[IotaSdk.SimpleSignature, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable
Inheritance Object → SimpleSignature
Implements ISimpleSignature, IEquatable<SimpleSignature>, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
SimpleSignature(UInt64)
public SimpleSignature(ulong pointer)
Parameters
pointer UInt64
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
Ed25519PubKey()
public Ed25519PublicKey Ed25519PubKey()
Returns
Ed25519PubKeyOpt()
public Ed25519PublicKey? Ed25519PubKeyOpt()
Returns
Ed25519Sig()
public Ed25519Signature Ed25519Sig()
Returns
Ed25519SigOpt()
public Ed25519Signature? Ed25519SigOpt()
Returns
IsEd25519()
public bool IsEd25519()
Returns
IsSecp256k1()
public bool IsSecp256k1()
Returns
IsSecp256r1()
public bool IsSecp256r1()
Returns
Scheme()
public SignatureScheme Scheme()
Returns
Secp256k1PubKey()
public Secp256k1PublicKey Secp256k1PubKey()
Returns
Secp256k1PubKeyOpt()
public Secp256k1PublicKey? Secp256k1PubKeyOpt()
Returns
Secp256k1Sig()
public Secp256k1Signature Secp256k1Sig()
Returns
Secp256k1SigOpt()
public Secp256k1Signature? Secp256k1SigOpt()
Returns
Secp256r1PubKey()
public Secp256r1PublicKey Secp256r1PubKey()
Returns
Secp256r1PubKeyOpt()
public Secp256r1PublicKey? Secp256r1PubKeyOpt()
Returns
Secp256r1Sig()
public Secp256r1Signature Secp256r1Sig()
Returns
Secp256r1SigOpt()
public Secp256r1Signature? Secp256r1SigOpt()
Returns
SignatureBytes()
The raw signature bytes, without the scheme flag or the public key.
public Byte[] SignatureBytes()
Returns
ToBase64()
Base64-encode this signature as its flag || sig || pubkey bytes.
public string ToBase64()
Returns
ToBytes()
public Byte[] ToBytes()
Returns
ToPublicKey()
The public key embedded in this signature.
public PublicKey ToPublicKey()
Returns
Equals(SimpleSignature)
public bool Equals(SimpleSignature? other)
Parameters
other SimpleSignature?
Returns
Equals(Object)
public override bool Equals(object? obj)
Parameters
obj Object?
Returns
GetHashCode()
public override int GetHashCode()
Returns
FromBase64(String)
Decode a signature from the Base64 form produced by to_base64, i.e.
base64 over the flag || sig || pubkey bytes.
public static SimpleSignature FromBase64(string base64)
Parameters
base64 String
Returns
Exceptions
NewEd25519(Ed25519Signature, Ed25519PublicKey)
public static SimpleSignature NewEd25519(Ed25519Signature signature, Ed25519PublicKey publicKey)
Parameters
signature Ed25519Signature
publicKey Ed25519PublicKey
Returns
NewSecp256k1(Secp256k1Signature, Secp256k1PublicKey)
public static SimpleSignature NewSecp256k1(Secp256k1Signature signature, Secp256k1PublicKey publicKey)
Parameters
signature Secp256k1Signature
publicKey Secp256k1PublicKey
Returns
NewSecp256r1(Secp256r1Signature, Secp256r1PublicKey)
public static SimpleSignature NewSecp256r1(Secp256r1Signature signature, Secp256r1PublicKey publicKey)
Parameters
signature Secp256r1Signature
publicKey Secp256r1PublicKey