burrow: github.com/hyperledger/burrow/keys Index | Files | Directories

package keys

import "github.com/hyperledger/burrow/keys"

Index

Package Files

config.go core.go filesystem_key_store.go key.go key_client.go key_store.go keys.pb.go memory_key_store.go server.go

Constants

const (
    DefaultHost     = "localhost"
    DefaultPort     = "10997"
    DefaultHashType = "sha256"
    DefaultKeysDir  = ".keys"
    TestPort        = "0"
)
const (
    CryptoNone    = "none"
    CryptoAESGCM  = "scrypt-aes-gcm"
    HashEd25519   = "go-crypto-0.5.0"
    HashSecp256k1 = "btc"
)

func RegisterKeysServer Uses

func RegisterKeysServer(s *grpc.Server, srv KeysServer)

func StandAloneServer Uses

func StandAloneServer(keysDir string, AllowBadFilePermissions bool) *grpc.Server

func WriteKeyFile Uses

func WriteKeyFile(addr []byte, dataDirPath string, content []byte) (err error)

type AddNameRequest Uses

type AddNameRequest struct {
    Keyname              string   `protobuf:"bytes,1,opt,name=Keyname,proto3" json:"Keyname,omitempty"`
    Address              string   `protobuf:"bytes,2,opt,name=Address,proto3" json:"Address,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*AddNameRequest) Descriptor Uses

func (*AddNameRequest) Descriptor() ([]byte, []int)

func (*AddNameRequest) GetAddress Uses

func (m *AddNameRequest) GetAddress() string

func (*AddNameRequest) GetKeyname Uses

func (m *AddNameRequest) GetKeyname() string

func (*AddNameRequest) ProtoMessage Uses

func (*AddNameRequest) ProtoMessage()

func (*AddNameRequest) Reset Uses

func (m *AddNameRequest) Reset()

func (*AddNameRequest) Size Uses

func (m *AddNameRequest) Size() (n int)

func (*AddNameRequest) String Uses

func (m *AddNameRequest) String() string

func (*AddNameRequest) XXX_DiscardUnknown Uses

func (m *AddNameRequest) XXX_DiscardUnknown()

func (*AddNameRequest) XXX_Marshal Uses

func (m *AddNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddNameRequest) XXX_Merge Uses

func (m *AddNameRequest) XXX_Merge(src proto.Message)

func (*AddNameRequest) XXX_MessageName Uses

func (*AddNameRequest) XXX_MessageName() string

func (*AddNameRequest) XXX_Size Uses

func (m *AddNameRequest) XXX_Size() int

func (*AddNameRequest) XXX_Unmarshal Uses

func (m *AddNameRequest) XXX_Unmarshal(b []byte) error

type AddNameResponse Uses

type AddNameResponse struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*AddNameResponse) Descriptor Uses

func (*AddNameResponse) Descriptor() ([]byte, []int)

func (*AddNameResponse) ProtoMessage Uses

func (*AddNameResponse) ProtoMessage()

func (*AddNameResponse) Reset Uses

func (m *AddNameResponse) Reset()

func (*AddNameResponse) Size Uses

func (m *AddNameResponse) Size() (n int)

func (*AddNameResponse) String Uses

func (m *AddNameResponse) String() string

func (*AddNameResponse) XXX_DiscardUnknown Uses

func (m *AddNameResponse) XXX_DiscardUnknown()

func (*AddNameResponse) XXX_Marshal Uses

func (m *AddNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddNameResponse) XXX_Merge Uses

func (m *AddNameResponse) XXX_Merge(src proto.Message)

func (*AddNameResponse) XXX_MessageName Uses

func (*AddNameResponse) XXX_MessageName() string

func (*AddNameResponse) XXX_Size Uses

func (m *AddNameResponse) XXX_Size() int

func (*AddNameResponse) XXX_Unmarshal Uses

func (m *AddNameResponse) XXX_Unmarshal(b []byte) error

type ExportRequest Uses

type ExportRequest struct {
    Passphrase           string   `protobuf:"bytes,1,opt,name=Passphrase,proto3" json:"Passphrase,omitempty"`
    Name                 string   `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
    Address              string   `protobuf:"bytes,3,opt,name=Address,proto3" json:"Address,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ExportRequest) Descriptor Uses

func (*ExportRequest) Descriptor() ([]byte, []int)

func (*ExportRequest) GetAddress Uses

func (m *ExportRequest) GetAddress() string

func (*ExportRequest) GetName Uses

func (m *ExportRequest) GetName() string

func (*ExportRequest) GetPassphrase Uses

func (m *ExportRequest) GetPassphrase() string

func (*ExportRequest) ProtoMessage Uses

func (*ExportRequest) ProtoMessage()

func (*ExportRequest) Reset Uses

func (m *ExportRequest) Reset()

func (*ExportRequest) Size Uses

func (m *ExportRequest) Size() (n int)

func (*ExportRequest) String Uses

func (m *ExportRequest) String() string

func (*ExportRequest) XXX_DiscardUnknown Uses

func (m *ExportRequest) XXX_DiscardUnknown()

func (*ExportRequest) XXX_Marshal Uses

func (m *ExportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExportRequest) XXX_Merge Uses

func (m *ExportRequest) XXX_Merge(src proto.Message)

func (*ExportRequest) XXX_MessageName Uses

func (*ExportRequest) XXX_MessageName() string

func (*ExportRequest) XXX_Size Uses

func (m *ExportRequest) XXX_Size() int

func (*ExportRequest) XXX_Unmarshal Uses

func (m *ExportRequest) XXX_Unmarshal(b []byte) error

type ExportResponse Uses

type ExportResponse struct {
    Publickey            []byte   `protobuf:"bytes,1,opt,name=Publickey,proto3" json:"Publickey,omitempty"`
    Privatekey           []byte   `protobuf:"bytes,2,opt,name=Privatekey,proto3" json:"Privatekey,omitempty"`
    Address              []byte   `protobuf:"bytes,3,opt,name=Address,proto3" json:"Address,omitempty"`
    CurveType            string   `protobuf:"bytes,4,opt,name=CurveType,proto3" json:"CurveType,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ExportResponse) Descriptor Uses

func (*ExportResponse) Descriptor() ([]byte, []int)

func (*ExportResponse) GetAddress Uses

func (m *ExportResponse) GetAddress() []byte

func (*ExportResponse) GetCurveType Uses

func (m *ExportResponse) GetCurveType() string

func (*ExportResponse) GetPrivatekey Uses

func (m *ExportResponse) GetPrivatekey() []byte

func (*ExportResponse) GetPublickey Uses

func (m *ExportResponse) GetPublickey() []byte

func (*ExportResponse) ProtoMessage Uses

func (*ExportResponse) ProtoMessage()

func (*ExportResponse) Reset Uses

func (m *ExportResponse) Reset()

func (*ExportResponse) Size Uses

func (m *ExportResponse) Size() (n int)

func (*ExportResponse) String Uses

func (m *ExportResponse) String() string

func (*ExportResponse) XXX_DiscardUnknown Uses

func (m *ExportResponse) XXX_DiscardUnknown()

func (*ExportResponse) XXX_Marshal Uses

func (m *ExportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExportResponse) XXX_Merge Uses

func (m *ExportResponse) XXX_Merge(src proto.Message)

func (*ExportResponse) XXX_MessageName Uses

func (*ExportResponse) XXX_MessageName() string

func (*ExportResponse) XXX_Size Uses

func (m *ExportResponse) XXX_Size() int

func (*ExportResponse) XXX_Unmarshal Uses

func (m *ExportResponse) XXX_Unmarshal(b []byte) error

type FilesystemKeyStore Uses

type FilesystemKeyStore struct {
    sync.Mutex
    AllowBadFilePermissions bool
    // contains filtered or unexported fields
}

func NewFilesystemKeyStore Uses

func NewFilesystemKeyStore(dir string, AllowBadFilePermissions bool) *FilesystemKeyStore

func (*FilesystemKeyStore) AddName Uses

func (k *FilesystemKeyStore) AddName(ctx context.Context, in *AddNameRequest) (*AddNameResponse, error)

func (*FilesystemKeyStore) AllKeys Uses

func (ks *FilesystemKeyStore) AllKeys() ([]*Key, error)

func (*FilesystemKeyStore) DeleteKey Uses

func (ks *FilesystemKeyStore) DeleteKey(passphrase string, keyAddr []byte) (err error)

func (*FilesystemKeyStore) Export Uses

func (k *FilesystemKeyStore) Export(ctx context.Context, in *ExportRequest) (*ExportResponse, error)

func (*FilesystemKeyStore) Gen Uses

func (ks *FilesystemKeyStore) Gen(passphrase string, curveType crypto.CurveType) (key *Key, err error)

func (*FilesystemKeyStore) GenerateKey Uses

func (k *FilesystemKeyStore) GenerateKey(ctx context.Context, in *GenRequest) (*GenResponse, error)

func (*FilesystemKeyStore) GetAddressForKeyName Uses

func (ks *FilesystemKeyStore) GetAddressForKeyName(name string) (crypto.Address, error)

func (*FilesystemKeyStore) GetAllAddresses Uses

func (ks *FilesystemKeyStore) GetAllAddresses() (addresses []string, err error)

func (*FilesystemKeyStore) GetAllNames Uses

func (ks *FilesystemKeyStore) GetAllNames() (map[string]string, error)

func (*FilesystemKeyStore) GetKey Uses

func (ks *FilesystemKeyStore) GetKey(passphrase string, keyAddr []byte) (*Key, error)

func (*FilesystemKeyStore) GetKeyFile Uses

func (ks *FilesystemKeyStore) GetKeyFile(dataDirPath string, keyAddr []byte) (fileContent []byte, err error)

func (*FilesystemKeyStore) Hash Uses

func (k *FilesystemKeyStore) Hash(ctx context.Context, in *HashRequest) (*HashResponse, error)

func (*FilesystemKeyStore) Import Uses

func (k *FilesystemKeyStore) Import(ctx context.Context, in *ImportRequest) (*ImportResponse, error)

func (*FilesystemKeyStore) ImportJSON Uses

func (k *FilesystemKeyStore) ImportJSON(ctx context.Context, in *ImportJSONRequest) (*ImportResponse, error)

func (*FilesystemKeyStore) List Uses

func (k *FilesystemKeyStore) List(ctx context.Context, in *ListRequest) (*ListResponse, error)

func (*FilesystemKeyStore) PublicKey Uses

func (k *FilesystemKeyStore) PublicKey(ctx context.Context, in *PubRequest) (*PubResponse, error)

func (*FilesystemKeyStore) RemoveName Uses

func (k *FilesystemKeyStore) RemoveName(ctx context.Context, in *RemoveNameRequest) (*RemoveNameResponse, error)

func (*FilesystemKeyStore) Sign Uses

func (k *FilesystemKeyStore) Sign(ctx context.Context, in *SignRequest) (*SignResponse, error)

func (*FilesystemKeyStore) StoreKey Uses

func (ks *FilesystemKeyStore) StoreKey(passphrase string, key *Key) error

func (*FilesystemKeyStore) StoreKeyEncrypted Uses

func (ks *FilesystemKeyStore) StoreKeyEncrypted(passphrase string, key *Key) error

func (*FilesystemKeyStore) StoreKeyPlain Uses

func (ks *FilesystemKeyStore) StoreKeyPlain(key *Key) (err error)

func (*FilesystemKeyStore) Verify Uses

func (k *FilesystemKeyStore) Verify(ctx context.Context, in *VerifyRequest) (*VerifyResponse, error)

type GenRequest Uses

type GenRequest struct {
    Passphrase           string   `protobuf:"bytes,1,opt,name=Passphrase,proto3" json:"Passphrase,omitempty"`
    CurveType            string   `protobuf:"bytes,2,opt,name=CurveType,proto3" json:"CurveType,omitempty"`
    KeyName              string   `protobuf:"bytes,3,opt,name=KeyName,proto3" json:"KeyName,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*GenRequest) Descriptor Uses

func (*GenRequest) Descriptor() ([]byte, []int)

func (*GenRequest) GetCurveType Uses

func (m *GenRequest) GetCurveType() string

func (*GenRequest) GetKeyName Uses

func (m *GenRequest) GetKeyName() string

func (*GenRequest) GetPassphrase Uses

func (m *GenRequest) GetPassphrase() string

func (*GenRequest) ProtoMessage Uses

func (*GenRequest) ProtoMessage()

func (*GenRequest) Reset Uses

func (m *GenRequest) Reset()

func (*GenRequest) Size Uses

func (m *GenRequest) Size() (n int)

func (*GenRequest) String Uses

func (m *GenRequest) String() string

func (*GenRequest) XXX_DiscardUnknown Uses

func (m *GenRequest) XXX_DiscardUnknown()

func (*GenRequest) XXX_Marshal Uses

func (m *GenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenRequest) XXX_Merge Uses

func (m *GenRequest) XXX_Merge(src proto.Message)

func (*GenRequest) XXX_MessageName Uses

func (*GenRequest) XXX_MessageName() string

func (*GenRequest) XXX_Size Uses

func (m *GenRequest) XXX_Size() int

func (*GenRequest) XXX_Unmarshal Uses

func (m *GenRequest) XXX_Unmarshal(b []byte) error

type GenResponse Uses

type GenResponse struct {
    Address              string   `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*GenResponse) Descriptor Uses

func (*GenResponse) Descriptor() ([]byte, []int)

func (*GenResponse) GetAddress Uses

func (m *GenResponse) GetAddress() string

func (*GenResponse) ProtoMessage Uses

func (*GenResponse) ProtoMessage()

func (*GenResponse) Reset Uses

func (m *GenResponse) Reset()

func (*GenResponse) Size Uses

func (m *GenResponse) Size() (n int)

func (*GenResponse) String Uses

func (m *GenResponse) String() string

func (*GenResponse) XXX_DiscardUnknown Uses

func (m *GenResponse) XXX_DiscardUnknown()

func (*GenResponse) XXX_Marshal Uses

func (m *GenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenResponse) XXX_Merge Uses

func (m *GenResponse) XXX_Merge(src proto.Message)

func (*GenResponse) XXX_MessageName Uses

func (*GenResponse) XXX_MessageName() string

func (*GenResponse) XXX_Size Uses

func (m *GenResponse) XXX_Size() int

func (*GenResponse) XXX_Unmarshal Uses

func (m *GenResponse) XXX_Unmarshal(b []byte) error

type HashRequest Uses

type HashRequest struct {
    Hashtype             string   `protobuf:"bytes,1,opt,name=Hashtype,proto3" json:"Hashtype,omitempty"`
    Message              []byte   `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*HashRequest) Descriptor Uses

func (*HashRequest) Descriptor() ([]byte, []int)

func (*HashRequest) GetHashtype Uses

func (m *HashRequest) GetHashtype() string

func (*HashRequest) GetMessage Uses

func (m *HashRequest) GetMessage() []byte

func (*HashRequest) ProtoMessage Uses

func (*HashRequest) ProtoMessage()

func (*HashRequest) Reset Uses

func (m *HashRequest) Reset()

func (*HashRequest) Size Uses

func (m *HashRequest) Size() (n int)

func (*HashRequest) String Uses

func (m *HashRequest) String() string

func (*HashRequest) XXX_DiscardUnknown Uses

func (m *HashRequest) XXX_DiscardUnknown()

func (*HashRequest) XXX_Marshal Uses

func (m *HashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HashRequest) XXX_Merge Uses

func (m *HashRequest) XXX_Merge(src proto.Message)

func (*HashRequest) XXX_MessageName Uses

func (*HashRequest) XXX_MessageName() string

func (*HashRequest) XXX_Size Uses

func (m *HashRequest) XXX_Size() int

func (*HashRequest) XXX_Unmarshal Uses

func (m *HashRequest) XXX_Unmarshal(b []byte) error

type HashResponse Uses

type HashResponse struct {
    Hash                 string   `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*HashResponse) Descriptor Uses

func (*HashResponse) Descriptor() ([]byte, []int)

func (*HashResponse) GetHash Uses

func (m *HashResponse) GetHash() string

func (*HashResponse) ProtoMessage Uses

func (*HashResponse) ProtoMessage()

func (*HashResponse) Reset Uses

func (m *HashResponse) Reset()

func (*HashResponse) Size Uses

func (m *HashResponse) Size() (n int)

func (*HashResponse) String Uses

func (m *HashResponse) String() string

func (*HashResponse) XXX_DiscardUnknown Uses

func (m *HashResponse) XXX_DiscardUnknown()

func (*HashResponse) XXX_Marshal Uses

func (m *HashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HashResponse) XXX_Merge Uses

func (m *HashResponse) XXX_Merge(src proto.Message)

func (*HashResponse) XXX_MessageName Uses

func (*HashResponse) XXX_MessageName() string

func (*HashResponse) XXX_Size Uses

func (m *HashResponse) XXX_Size() int

func (*HashResponse) XXX_Unmarshal Uses

func (m *HashResponse) XXX_Unmarshal(b []byte) error

type ImportJSONRequest Uses

type ImportJSONRequest struct {
    Passphrase           string   `protobuf:"bytes,1,opt,name=Passphrase,proto3" json:"Passphrase,omitempty"`
    JSON                 string   `protobuf:"bytes,2,opt,name=JSON,proto3" json:"JSON,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ImportJSONRequest) Descriptor Uses

func (*ImportJSONRequest) Descriptor() ([]byte, []int)

func (*ImportJSONRequest) GetJSON Uses

func (m *ImportJSONRequest) GetJSON() string

func (*ImportJSONRequest) GetPassphrase Uses

func (m *ImportJSONRequest) GetPassphrase() string

func (*ImportJSONRequest) ProtoMessage Uses

func (*ImportJSONRequest) ProtoMessage()

func (*ImportJSONRequest) Reset Uses

func (m *ImportJSONRequest) Reset()

func (*ImportJSONRequest) Size Uses

func (m *ImportJSONRequest) Size() (n int)

func (*ImportJSONRequest) String Uses

func (m *ImportJSONRequest) String() string

func (*ImportJSONRequest) XXX_DiscardUnknown Uses

func (m *ImportJSONRequest) XXX_DiscardUnknown()

func (*ImportJSONRequest) XXX_Marshal Uses

func (m *ImportJSONRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImportJSONRequest) XXX_Merge Uses

func (m *ImportJSONRequest) XXX_Merge(src proto.Message)

func (*ImportJSONRequest) XXX_MessageName Uses

func (*ImportJSONRequest) XXX_MessageName() string

func (*ImportJSONRequest) XXX_Size Uses

func (m *ImportJSONRequest) XXX_Size() int

func (*ImportJSONRequest) XXX_Unmarshal Uses

func (m *ImportJSONRequest) XXX_Unmarshal(b []byte) error

type ImportRequest Uses

type ImportRequest struct {
    Passphrase           string   `protobuf:"bytes,1,opt,name=Passphrase,proto3" json:"Passphrase,omitempty"`
    Name                 string   `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
    CurveType            string   `protobuf:"bytes,3,opt,name=CurveType,proto3" json:"CurveType,omitempty"`
    KeyBytes             []byte   `protobuf:"bytes,4,opt,name=KeyBytes,proto3" json:"KeyBytes,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ImportRequest) Descriptor Uses

func (*ImportRequest) Descriptor() ([]byte, []int)

func (*ImportRequest) GetCurveType Uses

func (m *ImportRequest) GetCurveType() string

func (*ImportRequest) GetKeyBytes Uses

func (m *ImportRequest) GetKeyBytes() []byte

func (*ImportRequest) GetName Uses

func (m *ImportRequest) GetName() string

func (*ImportRequest) GetPassphrase Uses

func (m *ImportRequest) GetPassphrase() string

func (*ImportRequest) ProtoMessage Uses

func (*ImportRequest) ProtoMessage()

func (*ImportRequest) Reset Uses

func (m *ImportRequest) Reset()

func (*ImportRequest) Size Uses

func (m *ImportRequest) Size() (n int)

func (*ImportRequest) String Uses

func (m *ImportRequest) String() string

func (*ImportRequest) XXX_DiscardUnknown Uses

func (m *ImportRequest) XXX_DiscardUnknown()

func (*ImportRequest) XXX_Marshal Uses

func (m *ImportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImportRequest) XXX_Merge Uses

func (m *ImportRequest) XXX_Merge(src proto.Message)

func (*ImportRequest) XXX_MessageName Uses

func (*ImportRequest) XXX_MessageName() string

func (*ImportRequest) XXX_Size Uses

func (m *ImportRequest) XXX_Size() int

func (*ImportRequest) XXX_Unmarshal Uses

func (m *ImportRequest) XXX_Unmarshal(b []byte) error

type ImportResponse Uses

type ImportResponse struct {
    Address              string   `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ImportResponse) Descriptor Uses

func (*ImportResponse) Descriptor() ([]byte, []int)

func (*ImportResponse) GetAddress Uses

func (m *ImportResponse) GetAddress() string

func (*ImportResponse) ProtoMessage Uses

func (*ImportResponse) ProtoMessage()

func (*ImportResponse) Reset Uses

func (m *ImportResponse) Reset()

func (*ImportResponse) Size Uses

func (m *ImportResponse) Size() (n int)

func (*ImportResponse) String Uses

func (m *ImportResponse) String() string

func (*ImportResponse) XXX_DiscardUnknown Uses

func (m *ImportResponse) XXX_DiscardUnknown()

func (*ImportResponse) XXX_Marshal Uses

func (m *ImportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImportResponse) XXX_Merge Uses

func (m *ImportResponse) XXX_Merge(src proto.Message)

func (*ImportResponse) XXX_MessageName Uses

func (*ImportResponse) XXX_MessageName() string

func (*ImportResponse) XXX_Size Uses

func (m *ImportResponse) XXX_Size() int

func (*ImportResponse) XXX_Unmarshal Uses

func (m *ImportResponse) XXX_Unmarshal(b []byte) error

type Key Uses

type Key struct {
    CurveType  crypto.CurveType
    Address    crypto.Address
    PublicKey  crypto.PublicKey
    PrivateKey crypto.PrivateKey
}

func DecryptKey Uses

func DecryptKey(passphrase string, keyProtected *keyJSON) (*Key, error)

func NewKey Uses

func NewKey(typ crypto.CurveType) (*Key, error)

func NewKeyFromPriv Uses

func NewKeyFromPriv(curveType crypto.CurveType, PrivKeyBytes []byte) (*Key, error)

func NewKeyFromPub Uses

func NewKeyFromPub(curveType crypto.CurveType, PubKeyBytes []byte) (*Key, error)

func (*Key) MarshalJSON Uses

func (k *Key) MarshalJSON() (j []byte, err error)

func (*Key) Pubkey Uses

func (k *Key) Pubkey() []byte

func (*Key) UnmarshalJSON Uses

func (k *Key) UnmarshalJSON(j []byte) (err error)

type KeyClient Uses

type KeyClient interface {
    // Sign returns the signature bytes for given message signed with the key associated with signAddress
    Sign(signAddress crypto.Address, message []byte) (*crypto.Signature, error)

    // PublicKey returns the public key associated with a given address
    PublicKey(address crypto.Address) (publicKey crypto.PublicKey, err error)

    // Generate requests that a key be generate within the keys instance and returns the address
    Generate(keyName string, keyType crypto.CurveType) (keyAddress crypto.Address, err error)

    // Get the address for a keyname or the adress itself
    GetAddressForKeyName(keyName string) (keyAddress crypto.Address, err error)

    // Returns nil if the keys instance is healthy, error otherwise
    HealthCheck() error
}

func NewLocalKeyClient Uses

func NewLocalKeyClient(ks KeyStore, logger *logging.Logger) KeyClient

NewLocalKeyClient returns a new keys client, backed by the local filesystem

func NewRemoteKeyClient Uses

func NewRemoteKeyClient(rpcAddress string, logger *logging.Logger) (KeyClient, error)

NewRemoteKeyClient returns a new keys client for provided rpc location

type KeyID Uses

type KeyID struct {
    Address              string   `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"`
    KeyName              []string `protobuf:"bytes,2,rep,name=KeyName,proto3" json:"KeyName,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*KeyID) Descriptor Uses

func (*KeyID) Descriptor() ([]byte, []int)

func (*KeyID) GetAddress Uses

func (m *KeyID) GetAddress() string

func (*KeyID) GetKeyName Uses

func (m *KeyID) GetKeyName() []string

func (*KeyID) ProtoMessage Uses

func (*KeyID) ProtoMessage()

func (*KeyID) Reset Uses

func (m *KeyID) Reset()

func (*KeyID) Size Uses

func (m *KeyID) Size() (n int)

func (*KeyID) String Uses

func (m *KeyID) String() string

func (*KeyID) XXX_DiscardUnknown Uses

func (m *KeyID) XXX_DiscardUnknown()

func (*KeyID) XXX_Marshal Uses

func (m *KeyID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyID) XXX_Merge Uses

func (m *KeyID) XXX_Merge(src proto.Message)

func (*KeyID) XXX_MessageName Uses

func (*KeyID) XXX_MessageName() string

func (*KeyID) XXX_Size Uses

func (m *KeyID) XXX_Size() int

func (*KeyID) XXX_Unmarshal Uses

func (m *KeyID) XXX_Unmarshal(b []byte) error

type KeyStore Uses

type KeyStore interface {
    GetAddressForKeyName(keyName string) (keyAddress crypto.Address, err error)
    GenerateKey(ctx context.Context, in *GenRequest) (*GenResponse, error)
    PublicKey(ctx context.Context, in *PubRequest) (*PubResponse, error)
    Sign(ctx context.Context, in *SignRequest) (*SignResponse, error)
}

type KeysClient Uses

type KeysClient interface {
    GenerateKey(ctx context.Context, in *GenRequest, opts ...grpc.CallOption) (*GenResponse, error)
    PublicKey(ctx context.Context, in *PubRequest, opts ...grpc.CallOption) (*PubResponse, error)
    Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error)
    Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error)
    Import(ctx context.Context, in *ImportRequest, opts ...grpc.CallOption) (*ImportResponse, error)
    ImportJSON(ctx context.Context, in *ImportJSONRequest, opts ...grpc.CallOption) (*ImportResponse, error)
    Export(ctx context.Context, in *ExportRequest, opts ...grpc.CallOption) (*ExportResponse, error)
    Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error)
    RemoveName(ctx context.Context, in *RemoveNameRequest, opts ...grpc.CallOption) (*RemoveNameResponse, error)
    List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
    AddName(ctx context.Context, in *AddNameRequest, opts ...grpc.CallOption) (*AddNameResponse, error)
}

KeysClient is the client API for Keys service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewKeysClient Uses

func NewKeysClient(cc *grpc.ClientConn) KeysClient

type KeysConfig Uses

type KeysConfig struct {
    GRPCServiceEnabled      bool
    AllowBadFilePermissions bool
    RemoteAddress           string
    KeysDirectory           string
}

func DefaultKeysConfig Uses

func DefaultKeysConfig() *KeysConfig

type KeysServer Uses

type KeysServer interface {
    GenerateKey(context.Context, *GenRequest) (*GenResponse, error)
    PublicKey(context.Context, *PubRequest) (*PubResponse, error)
    Sign(context.Context, *SignRequest) (*SignResponse, error)
    Verify(context.Context, *VerifyRequest) (*VerifyResponse, error)
    Import(context.Context, *ImportRequest) (*ImportResponse, error)
    ImportJSON(context.Context, *ImportJSONRequest) (*ImportResponse, error)
    Export(context.Context, *ExportRequest) (*ExportResponse, error)
    Hash(context.Context, *HashRequest) (*HashResponse, error)
    RemoveName(context.Context, *RemoveNameRequest) (*RemoveNameResponse, error)
    List(context.Context, *ListRequest) (*ListResponse, error)
    AddName(context.Context, *AddNameRequest) (*AddNameResponse, error)
}

KeysServer is the server API for Keys service.

type ListRequest Uses

type ListRequest struct {
    KeyName              string   `protobuf:"bytes,1,opt,name=KeyName,proto3" json:"KeyName,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ListRequest) Descriptor Uses

func (*ListRequest) Descriptor() ([]byte, []int)

func (*ListRequest) GetKeyName Uses

func (m *ListRequest) GetKeyName() string

func (*ListRequest) ProtoMessage Uses

func (*ListRequest) ProtoMessage()

func (*ListRequest) Reset Uses

func (m *ListRequest) Reset()

func (*ListRequest) Size Uses

func (m *ListRequest) Size() (n int)

func (*ListRequest) String Uses

func (m *ListRequest) String() string

func (*ListRequest) XXX_DiscardUnknown Uses

func (m *ListRequest) XXX_DiscardUnknown()

func (*ListRequest) XXX_Marshal Uses

func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListRequest) XXX_Merge Uses

func (m *ListRequest) XXX_Merge(src proto.Message)

func (*ListRequest) XXX_MessageName Uses

func (*ListRequest) XXX_MessageName() string

func (*ListRequest) XXX_Size Uses

func (m *ListRequest) XXX_Size() int

func (*ListRequest) XXX_Unmarshal Uses

func (m *ListRequest) XXX_Unmarshal(b []byte) error

type ListResponse Uses

type ListResponse struct {
    Key                  []*KeyID `protobuf:"bytes,1,rep,name=key,proto3" json:"key,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ListResponse) Descriptor Uses

func (*ListResponse) Descriptor() ([]byte, []int)

func (*ListResponse) GetKey Uses

func (m *ListResponse) GetKey() []*KeyID

func (*ListResponse) ProtoMessage Uses

func (*ListResponse) ProtoMessage()

func (*ListResponse) Reset Uses

func (m *ListResponse) Reset()

func (*ListResponse) Size Uses

func (m *ListResponse) Size() (n int)

func (*ListResponse) String Uses

func (m *ListResponse) String() string

func (*ListResponse) XXX_DiscardUnknown Uses

func (m *ListResponse) XXX_DiscardUnknown()

func (*ListResponse) XXX_Marshal Uses

func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListResponse) XXX_Merge Uses

func (m *ListResponse) XXX_Merge(src proto.Message)

func (*ListResponse) XXX_MessageName Uses

func (*ListResponse) XXX_MessageName() string

func (*ListResponse) XXX_Size Uses

func (m *ListResponse) XXX_Size() int

func (*ListResponse) XXX_Unmarshal Uses

func (m *ListResponse) XXX_Unmarshal(b []byte) error

type MemoryKeyStore Uses

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

func NewMemoryKeyStore Uses

func NewMemoryKeyStore(privateAccounts ...*acm.PrivateAccount) *MemoryKeyStore

func (*MemoryKeyStore) GenerateKey Uses

func (mks *MemoryKeyStore) GenerateKey(ctx context.Context, in *GenRequest) (*GenResponse, error)

func (*MemoryKeyStore) GetAddressForKeyName Uses

func (mks *MemoryKeyStore) GetAddressForKeyName(keyName string) (crypto.Address, error)

func (*MemoryKeyStore) PublicKey Uses

func (mks *MemoryKeyStore) PublicKey(ctx context.Context, in *PubRequest) (*PubResponse, error)

func (*MemoryKeyStore) Sign Uses

func (mks *MemoryKeyStore) Sign(ctx context.Context, in *SignRequest) (*SignResponse, error)

type PubRequest Uses

type PubRequest struct {
    Address              string   `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"`
    Name                 string   `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*PubRequest) Descriptor Uses

func (*PubRequest) Descriptor() ([]byte, []int)

func (*PubRequest) GetAddress Uses

func (m *PubRequest) GetAddress() string

func (*PubRequest) GetName Uses

func (m *PubRequest) GetName() string

func (*PubRequest) ProtoMessage Uses

func (*PubRequest) ProtoMessage()

func (*PubRequest) Reset Uses

func (m *PubRequest) Reset()

func (*PubRequest) Size Uses

func (m *PubRequest) Size() (n int)

func (*PubRequest) String Uses

func (m *PubRequest) String() string

func (*PubRequest) XXX_DiscardUnknown Uses

func (m *PubRequest) XXX_DiscardUnknown()

func (*PubRequest) XXX_Marshal Uses

func (m *PubRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PubRequest) XXX_Merge Uses

func (m *PubRequest) XXX_Merge(src proto.Message)

func (*PubRequest) XXX_MessageName Uses

func (*PubRequest) XXX_MessageName() string

func (*PubRequest) XXX_Size Uses

func (m *PubRequest) XXX_Size() int

func (*PubRequest) XXX_Unmarshal Uses

func (m *PubRequest) XXX_Unmarshal(b []byte) error

type PubResponse Uses

type PubResponse struct {
    PublicKey            []byte   `protobuf:"bytes,1,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"`
    CurveType            string   `protobuf:"bytes,2,opt,name=CurveType,proto3" json:"CurveType,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*PubResponse) Descriptor Uses

func (*PubResponse) Descriptor() ([]byte, []int)

func (*PubResponse) GetCurveType Uses

func (m *PubResponse) GetCurveType() string

func (*PubResponse) GetPublicKey Uses

func (m *PubResponse) GetPublicKey() []byte

func (*PubResponse) ProtoMessage Uses

func (*PubResponse) ProtoMessage()

func (*PubResponse) Reset Uses

func (m *PubResponse) Reset()

func (*PubResponse) Size Uses

func (m *PubResponse) Size() (n int)

func (*PubResponse) String Uses

func (m *PubResponse) String() string

func (*PubResponse) XXX_DiscardUnknown Uses

func (m *PubResponse) XXX_DiscardUnknown()

func (*PubResponse) XXX_Marshal Uses

func (m *PubResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PubResponse) XXX_Merge Uses

func (m *PubResponse) XXX_Merge(src proto.Message)

func (*PubResponse) XXX_MessageName Uses

func (*PubResponse) XXX_MessageName() string

func (*PubResponse) XXX_Size Uses

func (m *PubResponse) XXX_Size() int

func (*PubResponse) XXX_Unmarshal Uses

func (m *PubResponse) XXX_Unmarshal(b []byte) error

type RemoveNameRequest Uses

type RemoveNameRequest struct {
    KeyName              string   `protobuf:"bytes,1,opt,name=KeyName,proto3" json:"KeyName,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*RemoveNameRequest) Descriptor Uses

func (*RemoveNameRequest) Descriptor() ([]byte, []int)

func (*RemoveNameRequest) GetKeyName Uses

func (m *RemoveNameRequest) GetKeyName() string

func (*RemoveNameRequest) ProtoMessage Uses

func (*RemoveNameRequest) ProtoMessage()

func (*RemoveNameRequest) Reset Uses

func (m *RemoveNameRequest) Reset()

func (*RemoveNameRequest) Size Uses

func (m *RemoveNameRequest) Size() (n int)

func (*RemoveNameRequest) String Uses

func (m *RemoveNameRequest) String() string

func (*RemoveNameRequest) XXX_DiscardUnknown Uses

func (m *RemoveNameRequest) XXX_DiscardUnknown()

func (*RemoveNameRequest) XXX_Marshal Uses

func (m *RemoveNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RemoveNameRequest) XXX_Merge Uses

func (m *RemoveNameRequest) XXX_Merge(src proto.Message)

func (*RemoveNameRequest) XXX_MessageName Uses

func (*RemoveNameRequest) XXX_MessageName() string

func (*RemoveNameRequest) XXX_Size Uses

func (m *RemoveNameRequest) XXX_Size() int

func (*RemoveNameRequest) XXX_Unmarshal Uses

func (m *RemoveNameRequest) XXX_Unmarshal(b []byte) error

type RemoveNameResponse Uses

type RemoveNameResponse struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*RemoveNameResponse) Descriptor Uses

func (*RemoveNameResponse) Descriptor() ([]byte, []int)

func (*RemoveNameResponse) ProtoMessage Uses

func (*RemoveNameResponse) ProtoMessage()

func (*RemoveNameResponse) Reset Uses

func (m *RemoveNameResponse) Reset()

func (*RemoveNameResponse) Size Uses

func (m *RemoveNameResponse) Size() (n int)

func (*RemoveNameResponse) String Uses

func (m *RemoveNameResponse) String() string

func (*RemoveNameResponse) XXX_DiscardUnknown Uses

func (m *RemoveNameResponse) XXX_DiscardUnknown()

func (*RemoveNameResponse) XXX_Marshal Uses

func (m *RemoveNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RemoveNameResponse) XXX_Merge Uses

func (m *RemoveNameResponse) XXX_Merge(src proto.Message)

func (*RemoveNameResponse) XXX_MessageName Uses

func (*RemoveNameResponse) XXX_MessageName() string

func (*RemoveNameResponse) XXX_Size Uses

func (m *RemoveNameResponse) XXX_Size() int

func (*RemoveNameResponse) XXX_Unmarshal Uses

func (m *RemoveNameResponse) XXX_Unmarshal(b []byte) error

type SignRequest Uses

type SignRequest struct {
    Passphrase           string   `protobuf:"bytes,1,opt,name=Passphrase,proto3" json:"Passphrase,omitempty"`
    Address              string   `protobuf:"bytes,2,opt,name=Address,proto3" json:"Address,omitempty"`
    Name                 string   `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
    Message              []byte   `protobuf:"bytes,4,opt,name=Message,proto3" json:"Message,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*SignRequest) Descriptor Uses

func (*SignRequest) Descriptor() ([]byte, []int)

func (*SignRequest) GetAddress Uses

func (m *SignRequest) GetAddress() string

func (*SignRequest) GetMessage Uses

func (m *SignRequest) GetMessage() []byte

func (*SignRequest) GetName Uses

func (m *SignRequest) GetName() string

func (*SignRequest) GetPassphrase Uses

func (m *SignRequest) GetPassphrase() string

func (*SignRequest) ProtoMessage Uses

func (*SignRequest) ProtoMessage()

func (*SignRequest) Reset Uses

func (m *SignRequest) Reset()

func (*SignRequest) Size Uses

func (m *SignRequest) Size() (n int)

func (*SignRequest) String Uses

func (m *SignRequest) String() string

func (*SignRequest) XXX_DiscardUnknown Uses

func (m *SignRequest) XXX_DiscardUnknown()

func (*SignRequest) XXX_Marshal Uses

func (m *SignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignRequest) XXX_Merge Uses

func (m *SignRequest) XXX_Merge(src proto.Message)

func (*SignRequest) XXX_MessageName Uses

func (*SignRequest) XXX_MessageName() string

func (*SignRequest) XXX_Size Uses

func (m *SignRequest) XXX_Size() int

func (*SignRequest) XXX_Unmarshal Uses

func (m *SignRequest) XXX_Unmarshal(b []byte) error

type SignResponse Uses

type SignResponse struct {
    Signature            *crypto.Signature `protobuf:"bytes,3,opt,name=Signature,proto3" json:"Signature,omitempty"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

func (*SignResponse) Descriptor Uses

func (*SignResponse) Descriptor() ([]byte, []int)

func (*SignResponse) GetSignature Uses

func (m *SignResponse) GetSignature() *crypto.Signature

func (*SignResponse) ProtoMessage Uses

func (*SignResponse) ProtoMessage()

func (*SignResponse) Reset Uses

func (m *SignResponse) Reset()

func (*SignResponse) Size Uses

func (m *SignResponse) Size() (n int)

func (*SignResponse) String Uses

func (m *SignResponse) String() string

func (*SignResponse) XXX_DiscardUnknown Uses

func (m *SignResponse) XXX_DiscardUnknown()

func (*SignResponse) XXX_Marshal Uses

func (m *SignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignResponse) XXX_Merge Uses

func (m *SignResponse) XXX_Merge(src proto.Message)

func (*SignResponse) XXX_MessageName Uses

func (*SignResponse) XXX_MessageName() string

func (*SignResponse) XXX_Size Uses

func (m *SignResponse) XXX_Size() int

func (*SignResponse) XXX_Unmarshal Uses

func (m *SignResponse) XXX_Unmarshal(b []byte) error

type Signer Uses

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

func AddressableSigner Uses

func AddressableSigner(keyClient KeyClient, address crypto.Address) (*Signer, error)

AddressableSigner creates a signer that assumes the address holds an Ed25519 key

func (*Signer) GetAddress Uses

func (ms *Signer) GetAddress() crypto.Address

func (*Signer) GetPublicKey Uses

func (ms *Signer) GetPublicKey() crypto.PublicKey

func (*Signer) Sign Uses

func (ms *Signer) Sign(message []byte) (*crypto.Signature, error)

type UnimplementedKeysServer Uses

type UnimplementedKeysServer struct {
}

UnimplementedKeysServer can be embedded to have forward compatible implementations.

func (*UnimplementedKeysServer) AddName Uses

func (*UnimplementedKeysServer) AddName(ctx context.Context, req *AddNameRequest) (*AddNameResponse, error)

func (*UnimplementedKeysServer) Export Uses

func (*UnimplementedKeysServer) Export(ctx context.Context, req *ExportRequest) (*ExportResponse, error)

func (*UnimplementedKeysServer) GenerateKey Uses

func (*UnimplementedKeysServer) GenerateKey(ctx context.Context, req *GenRequest) (*GenResponse, error)

func (*UnimplementedKeysServer) Hash Uses

func (*UnimplementedKeysServer) Hash(ctx context.Context, req *HashRequest) (*HashResponse, error)

func (*UnimplementedKeysServer) Import Uses

func (*UnimplementedKeysServer) Import(ctx context.Context, req *ImportRequest) (*ImportResponse, error)

func (*UnimplementedKeysServer) ImportJSON Uses

func (*UnimplementedKeysServer) ImportJSON(ctx context.Context, req *ImportJSONRequest) (*ImportResponse, error)

func (*UnimplementedKeysServer) List Uses

func (*UnimplementedKeysServer) List(ctx context.Context, req *ListRequest) (*ListResponse, error)

func (*UnimplementedKeysServer) PublicKey Uses

func (*UnimplementedKeysServer) PublicKey(ctx context.Context, req *PubRequest) (*PubResponse, error)

func (*UnimplementedKeysServer) RemoveName Uses

func (*UnimplementedKeysServer) RemoveName(ctx context.Context, req *RemoveNameRequest) (*RemoveNameResponse, error)

func (*UnimplementedKeysServer) Sign Uses

func (*UnimplementedKeysServer) Sign(ctx context.Context, req *SignRequest) (*SignResponse, error)

func (*UnimplementedKeysServer) Verify Uses

func (*UnimplementedKeysServer) Verify(ctx context.Context, req *VerifyRequest) (*VerifyResponse, error)

type VerifyRequest Uses

type VerifyRequest struct {
    PublicKey            []byte            `protobuf:"bytes,2,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"`
    Message              []byte            `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
    Signature            *crypto.Signature `protobuf:"bytes,5,opt,name=Signature,proto3" json:"Signature,omitempty"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

func (*VerifyRequest) Descriptor Uses

func (*VerifyRequest) Descriptor() ([]byte, []int)

func (*VerifyRequest) GetMessage Uses

func (m *VerifyRequest) GetMessage() []byte

func (*VerifyRequest) GetPublicKey Uses

func (m *VerifyRequest) GetPublicKey() []byte

func (*VerifyRequest) GetSignature Uses

func (m *VerifyRequest) GetSignature() *crypto.Signature

func (*VerifyRequest) ProtoMessage Uses

func (*VerifyRequest) ProtoMessage()

func (*VerifyRequest) Reset Uses

func (m *VerifyRequest) Reset()

func (*VerifyRequest) Size Uses

func (m *VerifyRequest) Size() (n int)

func (*VerifyRequest) String Uses

func (m *VerifyRequest) String() string

func (*VerifyRequest) XXX_DiscardUnknown Uses

func (m *VerifyRequest) XXX_DiscardUnknown()

func (*VerifyRequest) XXX_Marshal Uses

func (m *VerifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VerifyRequest) XXX_Merge Uses

func (m *VerifyRequest) XXX_Merge(src proto.Message)

func (*VerifyRequest) XXX_MessageName Uses

func (*VerifyRequest) XXX_MessageName() string

func (*VerifyRequest) XXX_Size Uses

func (m *VerifyRequest) XXX_Size() int

func (*VerifyRequest) XXX_Unmarshal Uses

func (m *VerifyRequest) XXX_Unmarshal(b []byte) error

type VerifyResponse Uses

type VerifyResponse struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*VerifyResponse) Descriptor Uses

func (*VerifyResponse) Descriptor() ([]byte, []int)

func (*VerifyResponse) ProtoMessage Uses

func (*VerifyResponse) ProtoMessage()

func (*VerifyResponse) Reset Uses

func (m *VerifyResponse) Reset()

func (*VerifyResponse) Size Uses

func (m *VerifyResponse) Size() (n int)

func (*VerifyResponse) String Uses

func (m *VerifyResponse) String() string

func (*VerifyResponse) XXX_DiscardUnknown Uses

func (m *VerifyResponse) XXX_DiscardUnknown()

func (*VerifyResponse) XXX_Marshal Uses

func (m *VerifyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VerifyResponse) XXX_Merge Uses

func (m *VerifyResponse) XXX_Merge(src proto.Message)

func (*VerifyResponse) XXX_MessageName Uses

func (*VerifyResponse) XXX_MessageName() string

func (*VerifyResponse) XXX_Size Uses

func (m *VerifyResponse) XXX_Size() int

func (*VerifyResponse) XXX_Unmarshal Uses

func (m *VerifyResponse) XXX_Unmarshal(b []byte) error

Directories

PathSynopsis
common

Package keys imports 29 packages (graph) and is imported by 51 packages. Updated 2020-05-03. Refresh now. Tools for package owners.