Versions in this module Expand all Collapse all v1 v1.0.1 May 24, 2023 Changes in this version type Provider + func NewProvider(client KMSClient, cacheExpiration *time.Duration) Provider v1.0.0 May 24, 2023 Changes in this version + type CreateWalletInput struct + AddWalletAddressTag bool + Alias *string + BypassPolicyLockoutSafetyCheck bool + CustomKeyStoreId *string + Description *string + IgnoreDefaultWalletAddressAlias bool + MultiRegion *bool + Origin types.OriginType + Policy *string + Tags map[string]string + XksKeyId *string + type KMSClient interface + CreateAlias func(ctx context.Context, params *kms.CreateAliasInput, ...) (*kms.CreateAliasOutput, error) + CreateKey func(ctx context.Context, params *kms.CreateKeyInput, optFns ...func(*kms.Options)) (*kms.CreateKeyOutput, error) + DescribeKey func(ctx context.Context, params *kms.DescribeKeyInput, ...) (*kms.DescribeKeyOutput, error) + DisableKey func(ctx context.Context, params *kms.DisableKeyInput, optFns ...func(*kms.Options)) (*kms.DisableKeyOutput, error) + EnableKey func(ctx context.Context, params *kms.EnableKeyInput, optFns ...func(*kms.Options)) (*kms.EnableKeyOutput, error) + GetPublicKey func(ctx context.Context, params *kms.GetPublicKeyInput, ...) (*kms.GetPublicKeyOutput, error) + Sign func(ctx context.Context, params *kms.SignInput, optFns ...func(*kms.Options)) (*kms.SignOutput, error) + TagResource func(ctx context.Context, params *kms.TagResourceInput, ...) (*kms.TagResourceOutput, error) + type KMSWallet struct + Address string + KeyId string + type Provider interface + CreateWallet func(ctx context.Context, input CreateWalletInput) (wallet KMSWallet, err error) + DisableWallet func(ctx context.Context, keyId string) (*kms.DisableKeyOutput, error) + DisableWalletByAlias func(ctx context.Context, alias string) (*kms.DisableKeyOutput, error) + EnableWallet func(ctx context.Context, keyId string) (*kms.EnableKeyOutput, error) + EnableWalletByAlias func(ctx context.Context, alias string) (*kms.EnableKeyOutput, error) + GetKeyIdByAlias func(ctx context.Context, alias string) (keyId string, err error) + GetWallet func(ctx context.Context, keyId string) (wallet KMSWallet, err error) + GetWalletByAlias func(ctx context.Context, alias string) (wallet KMSWallet, err error) + GetWalletCaller func(ctx context.Context, keyId string, chainId *big.Int) (*bind.CallOpts, error) + GetWalletCallerByAlias func(ctx context.Context, alias string, chainId *big.Int) (*bind.CallOpts, error) + GetWalletTransactor func(ctx context.Context, keyId string, chainId *big.Int) (*bind.TransactOpts, error) + GetWalletTransactorByAlias func(ctx context.Context, alias string, chainId *big.Int) (*bind.TransactOpts, error) + SignMessage func(ctx context.Context, keyId string, message []byte) ([]byte, error) + SignMessageByAlias func(ctx context.Context, alias string, message []byte) ([]byte, error) + func New(client KMSClient, cacheExpiration *time.Duration) Provider