Table of Contents

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 AccountAddress
jwt string
ekp EphemeralKeyPair
proof ZeroKnowledgeSignature
pepper byte[]
uidKey string
address 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 string
ekp EphemeralKeyPair
proof ZeroKnowledgeSignature
pepper byte[]
uidKey string
address AccountAddress

Fields

Aud

public readonly string Aud

Field Value

string

DOMAIN_SEPARATOR

public static readonly string DOMAIN_SEPARATOR

Field Value

string

EphemeralKeyPair

public readonly EphemeralKeyPair EphemeralKeyPair

Field Value

EphemeralKeyPair

Jwt

public readonly string Jwt

Field Value

string

PEPPER_LENGTH

public static readonly int PEPPER_LENGTH

Field Value

int

Pepper

public readonly byte[] Pepper

Field Value

byte[]

Proof

public ZeroKnowledgeSignature Proof

Field Value

ZeroKnowledgeSignature

UidKey

public readonly string UidKey

Field Value

string

UidVal

public readonly string UidVal

Field Value

string

Properties

Address

Gets the address of the account.

public override AccountAddress Address { get; }

Property Value

AccountAddress

SigningScheme

Gets the signing scheme used by the account.

public override SigningScheme SigningScheme { get; }

Property Value

SigningScheme

VerifyingKey

Gets the KeylessPublicKey inside a SingleKey for the account.

public override IVerifyingKey VerifyingKey { get; }

Property Value

IVerifyingKey

Methods

Deserialize(Deserializer)

public static KeylessAccount Deserialize(Deserializer d)

Parameters

d Deserializer

Returns

KeylessAccount

Serialize(Serializer)

public void Serialize(Serializer s)

Parameters

s Serializer

Sign(AnyRawTransaction)

Signs a transaction using the account's private key.

public override Signature Sign(AnyRawTransaction transaction)

Parameters

transaction AnyRawTransaction

The 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 AnyRawTransaction

The 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

Returns

bool