aptos

package
v0.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SingleSignerAuthKey

func SingleSignerAuthKey(publicKey []byte) [32]byte

Types

type AptosAccountResp

type AptosAccountResp struct {
	SeqNum  string `json:"sequence_number"`
	AuthKey string `json:"authentication_key"`
}

type AptosProcessor

type AptosProcessor struct {
	// contains filtered or unexported fields
}

func NewAptosProcessor

func NewAptosProcessor(restUrl string) *AptosProcessor

func (*AptosProcessor) GetAccountAuthKeyOnChain

func (apt *AptosProcessor) GetAccountAuthKeyOnChain(address string) (string, error)

func (*AptosProcessor) GetCredentialJsons

func (apt *AptosProcessor) GetCredentialJsons(presentation string) ([]string, error)

func (*AptosProcessor) Sign

func (apt *AptosProcessor) Sign(did string, index int, msg []byte) ([]byte, error)

func (*AptosProcessor) VerifyCredential

func (apt *AptosProcessor) VerifyCredential(credential string, trustedDIDs []string) error

func (*AptosProcessor) VerifyPresentation

func (apt *AptosProcessor) VerifyPresentation(presentation string, requiredTypes []*modules.VCFilter) error

func (*AptosProcessor) VerifySig

func (apt *AptosProcessor) VerifySig(did string, index int, msg []byte, sig []byte, pubkeyBytes []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL