Versions in this module Expand all Collapse all v0 v0.6.0 Mar 24, 2023 Changes in this version + const PrimaryAccountName + func LoadKeySharePubKeyFromConfigBytes(bytes []byte) (*crypto.PubKey, error) + func NewController(ctx context.Context, credential *crypto.WebauthnCredential, ...) (Controller, Account, error) + func ValidateWebauthnCredential(credential *crypto.WebauthnCredential) (*crypto.WebauthnCredential, error) + type Account interface + Address func() string + CoinType func() crypto.CoinType + DID func() string + GetAuthInfo func(gas sdk.Coins) (*txtypes.AuthInfo, error) + IncrementNonce func() + ListKeyshares func() ([]KeyShare, error) + Lock func(c *crypto.WebauthnCredential, rootDir string) error + MapKeyshares func(f func(KeyShare) error) error + Name func() string + Nonce func() uint64 + PartyIDs func() []crypto.PartyID + PubKey func() *crypto.PubKey + Sign func(bz []byte) ([]byte, error) + Type func() string + Unlock func(c *crypto.WebauthnCredential, rootDir string) error + VerificationMethod func(controller string) *types.VerificationMethod + Verify func(bz []byte, sig []byte) (bool, error) + func NewAccount(kss []KeyShare, ct crypto.CoinType) Account + type Controller interface + Address func() string + Authorize func(cred *crypto.WebauthnCredential) error + CreateAccount func(name string, coinType crypto.CoinType) (Account, error) + Did func() string + DidDocument func() *types.DidDocument + GetAccount func(name string, coinType crypto.CoinType) (Account, error) + ListAccounts func(ct crypto.CoinType) ([]Account, error) + Sign func(name string, coinType crypto.CoinType, msg []byte) ([]byte, error) + Verify func(name string, coinType crypto.CoinType, msg []byte, sig []byte) (bool, error) + func LoadController(ctx context.Context, didDoc *types.DidDocument) (Controller, error) + type FilterOptions struct + AccountName *string + CoinType crypto.CoinType + Index *int + type Foobar struct + Bar string + Foo string + type KeyShare interface + Base64 func() string + Bytes func() []byte + Config func() *cmp.Config + Decrypt func(credential *crypto.WebauthnCredential) error + Did func() string + Encrypt func(credential *crypto.WebauthnCredential) error + IsEncrypted func() bool + PartyID func() crypto.PartyID + PubKey func() *crypto.PubKey + func LoadKeyshareFromStore(key string, value interface{}) (KeyShare, error) + func NewKeyshare(id string, bytes []byte, coinType crypto.CoinType, accName string) (KeyShare, error) + type KeyShareParseResult struct + AccountAddress string + AccountName string + CoinType crypto.CoinType + KeyShareName string + func ParseKeyShareDid(name string) (*KeyShareParseResult, error)