Class KeylessAccount
- Namespace
- Aptos
- Assembly
- Aptos.dll
public class KeylessAccount : Account
- Inheritance
-
KeylessAccount
- Inherited Members
Constructors
KeylessAccount(AccountAddress, string, EphemeralKeyPair, ZeroKnowledgeSignature, byte[], string, AccountAddress?)
public KeylessAccount(AccountAddress jwkAddress, string jwt, EphemeralKeyPair ekp, ZeroKnowledgeSignature proof, byte[] pepper, string uidKey = "sub", AccountAddress? address = null)
Parameters
jwkAddress
AccountAddressjwt
stringekp
EphemeralKeyPairproof
ZeroKnowledgeSignaturepepper
byte[]uidKey
stringaddress
AccountAddress
KeylessAccount(string, EphemeralKeyPair, ZeroKnowledgeSignature, byte[], string, AccountAddress?)
public KeylessAccount(string jwt, EphemeralKeyPair ekp, ZeroKnowledgeSignature proof, byte[] pepper, string uidKey = "sub", AccountAddress? address = null)
Parameters
jwt
stringekp
EphemeralKeyPairproof
ZeroKnowledgeSignaturepepper
byte[]uidKey
stringaddress
AccountAddress
Fields
Aud
public readonly string Aud
Field Value
DOMAIN_SEPARATOR
public static readonly string DOMAIN_SEPARATOR
Field Value
EphemeralKeyPair
public readonly EphemeralKeyPair EphemeralKeyPair
Field Value
Jwt
public readonly string Jwt
Field Value
PEPPER_LENGTH
public static readonly int PEPPER_LENGTH
Field Value
Pepper
public readonly byte[] Pepper
Field Value
- byte[]
Proof
public ZeroKnowledgeSignature Proof
Field Value
UidKey
public readonly string UidKey
Field Value
UidVal
public readonly string UidVal
Field Value
Properties
Address
Gets the address of the account.
public override AccountAddress Address { get; }
Property Value
SigningScheme
Gets the signing scheme used by the account.
public override SigningScheme SigningScheme { get; }
Property Value
VerifyingKey
Gets the KeylessPublicKey inside a SingleKey for the account.
public override IVerifyingKey VerifyingKey { get; }
Property Value
Methods
Deserialize(Deserializer)
public static KeylessAccount Deserialize(Deserializer d)
Parameters
Returns
Serialize(Serializer)
public void Serialize(Serializer s)
Parameters
Sign(AnyRawTransaction)
Signs a transaction using the account's private key.
public override Signature Sign(AnyRawTransaction transaction)
Parameters
transaction
AnyRawTransactionThe transaction to sign.
Returns
- Signature
The signed transaction.
Sign(byte[])
Signs a message with the using the signer.
public override Signature Sign(byte[] message)
Parameters
message
byte[]The message to sign as a byte array.
Returns
- Signature
The signed message.
SignWithAuthenticator(AnyRawTransaction)
Signs a transaction and returns an authenticator for the account.
public override AccountAuthenticator SignWithAuthenticator(AnyRawTransaction transaction)
Parameters
transaction
AnyRawTransactionThe transaction to sign.
Returns
- AccountAuthenticator
The authenticator containing the signature.
SignWithAuthenticator(byte[])
Signs a message and returns an authenticator for the account.
public override AccountAuthenticator SignWithAuthenticator(byte[] message)
Parameters
message
byte[]The message to sign as a byte array.
Returns
- AccountAuthenticator
The authenticator containing the signature.
VerifySignature(byte[], KeylessSignature)
public bool VerifySignature(byte[] message, KeylessSignature signature)
Parameters
message
byte[]signature
KeylessSignature