keystone

package
v0.0.0-...-b7ec496 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeygenAlgorithm_name = map[int32]string{
		0: "KEYGEN_SECP256K1",
		1: "KEYGEN_SECP256R1",
		2: "KEYGEN_ED25519",
	}
	KeygenAlgorithm_value = map[string]int32{
		"KEYGEN_SECP256K1": 0,
		"KEYGEN_SECP256R1": 1,
		"KEYGEN_ED25519":   2,
	}
)

Enum value maps for KeygenAlgorithm.

View Source
var (
	SigningProfile_name = map[int32]string{
		0: "PROFILE_BC_ECDSA_SHA256",
		1: "PROFILE_BC_ECDSA_SHA512",
		2: "PROFILE_ECDSA_SHA256",
		3: "PROFILE_ECDSA_NOHASH",
	}
	SigningProfile_value = map[string]int32{
		"PROFILE_BC_ECDSA_SHA256": 0,
		"PROFILE_BC_ECDSA_SHA512": 1,
		"PROFILE_ECDSA_SHA256":    2,
		"PROFILE_ECDSA_NOHASH":    3,
	}
)

Enum value maps for SigningProfile.

View Source
var File_keystone2_admin_proto protoreflect.FileDescriptor
View Source
var File_keystone2_proto protoreflect.FileDescriptor
View Source
var File_keystone_base_proto protoreflect.FileDescriptor
View Source
var KeyringAdmin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "keystone.keyringAdmin",
	HandlerType: (*KeyringAdminServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "newKeyring",
			Handler:    _KeyringAdmin_NewKeyring_Handler,
		},
		{
			MethodName: "keys",
			Handler:    _KeyringAdmin_Keys_Handler,
		},
		{
			MethodName: "label",
			Handler:    _KeyringAdmin_Label_Handler,
		},
		{
			MethodName: "remove",
			Handler:    _KeyringAdmin_Remove_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "keystone2_admin.proto",
}

KeyringAdmin_ServiceDesc is the grpc.ServiceDesc for KeyringAdmin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Keyring_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "keystone.keyring",
	HandlerType: (*KeyringServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "hello",
			Handler:    _Keyring_Hello_Handler,
		},
		{
			MethodName: "newKey",
			Handler:    _Keyring_NewKey_Handler,
		},
		{
			MethodName: "pubKey",
			Handler:    _Keyring_PubKey_Handler,
		},
		{
			MethodName: "key",
			Handler:    _Keyring_Key_Handler,
		},
		{
			MethodName: "metadata",
			Handler:    _Keyring_Metadata_Handler,
		},
		{
			MethodName: "sign",
			Handler:    _Keyring_Sign_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "keystone2.proto",
}

Keyring_ServiceDesc is the grpc.ServiceDesc for Keyring service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterKeyringAdminServer

func RegisterKeyringAdminServer(s grpc.ServiceRegistrar, srv KeyringAdminServer)

func RegisterKeyringServer

func RegisterKeyringServer(s grpc.ServiceRegistrar, srv KeyringServer)

Types

type Ehlo

type Ehlo struct {
	Id           uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	InResponseTo uint64 `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"`
	PublicKey    []byte `protobuf:"bytes,3,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
	EncTimestamp []byte `protobuf:"bytes,4,opt,name=encTimestamp,proto3" json:"encTimestamp,omitempty"`
	SignedIdKey  []byte `protobuf:"bytes,5,opt,name=signedIdKey,proto3" json:"signedIdKey,omitempty"`
	// contains filtered or unexported fields
}

func (*Ehlo) Descriptor deprecated

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

Deprecated: Use Ehlo.ProtoReflect.Descriptor instead.

func (*Ehlo) GetEncTimestamp

func (x *Ehlo) GetEncTimestamp() []byte

func (*Ehlo) GetId

func (x *Ehlo) GetId() uint64

func (*Ehlo) GetInResponseTo

func (x *Ehlo) GetInResponseTo() uint64

func (*Ehlo) GetPublicKey

func (x *Ehlo) GetPublicKey() []byte

func (*Ehlo) GetSignedIdKey

func (x *Ehlo) GetSignedIdKey() []byte

func (*Ehlo) ProtoMessage

func (*Ehlo) ProtoMessage()

func (*Ehlo) ProtoReflect

func (x *Ehlo) ProtoReflect() protoreflect.Message

func (*Ehlo) Reset

func (x *Ehlo) Reset()

func (*Ehlo) String

func (x *Ehlo) String() string

type Empty

type Empty struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) GetId

func (x *Empty) GetId() uint64

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type Helo

type Helo struct {
	Id           uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	PublicKey    []byte `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
	EncTimestamp []byte `protobuf:"bytes,3,opt,name=encTimestamp,proto3" json:"encTimestamp,omitempty"`
	SignedIdKey  []byte `protobuf:"bytes,4,opt,name=signedIdKey,proto3" json:"signedIdKey,omitempty"`
	// contains filtered or unexported fields
}

func (*Helo) Descriptor deprecated

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

Deprecated: Use Helo.ProtoReflect.Descriptor instead.

func (*Helo) GetEncTimestamp

func (x *Helo) GetEncTimestamp() []byte

func (*Helo) GetId

func (x *Helo) GetId() uint64

func (*Helo) GetPublicKey

func (x *Helo) GetPublicKey() []byte

func (*Helo) GetSignedIdKey

func (x *Helo) GetSignedIdKey() []byte

func (*Helo) ProtoMessage

func (*Helo) ProtoMessage()

func (*Helo) ProtoReflect

func (x *Helo) ProtoReflect() protoreflect.Message

func (*Helo) Reset

func (x *Helo) Reset()

func (*Helo) String

func (x *Helo) String() string

type KeyMetadata

type KeyMetadata struct {
	Id           uint64          `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	InResponseTo uint64          `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"`
	KeyId        uint64          `protobuf:"varint,3,opt,name=keyId,proto3" json:"keyId,omitempty"`
	Size         int32           `protobuf:"fixed32,4,opt,name=size,proto3" json:"size,omitempty"`
	Algo         KeygenAlgorithm `protobuf:"varint,5,opt,name=algo,proto3,enum=keystone.KeygenAlgorithm" json:"algo,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyMetadata) Descriptor deprecated

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

Deprecated: Use KeyMetadata.ProtoReflect.Descriptor instead.

func (*KeyMetadata) GetAlgo

func (x *KeyMetadata) GetAlgo() KeygenAlgorithm

func (*KeyMetadata) GetId

func (x *KeyMetadata) GetId() uint64

func (*KeyMetadata) GetInResponseTo

func (x *KeyMetadata) GetInResponseTo() uint64

func (*KeyMetadata) GetKeyId

func (x *KeyMetadata) GetKeyId() uint64

func (*KeyMetadata) GetSize

func (x *KeyMetadata) GetSize() int32

func (*KeyMetadata) ProtoMessage

func (*KeyMetadata) ProtoMessage()

func (*KeyMetadata) ProtoReflect

func (x *KeyMetadata) ProtoReflect() protoreflect.Message

func (*KeyMetadata) Reset

func (x *KeyMetadata) Reset()

func (*KeyMetadata) String

func (x *KeyMetadata) String() string

type KeyRef

type KeyRef struct {
	Id           uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	InResponseTo uint64 `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"`
	Label        string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
	KeyringId    string `protobuf:"bytes,4,opt,name=keyringId,proto3" json:"keyringId,omitempty"`
	IssuerUrl    string `protobuf:"bytes,5,opt,name=issuerUrl,proto3" json:"issuerUrl,omitempty"`
	Expires      uint64 `protobuf:"varint,6,opt,name=expires,proto3" json:"expires,omitempty"`
	IssuerIdUrl  string `protobuf:"bytes,7,opt,name=issuerIdUrl,proto3" json:"issuerIdUrl,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyRef) Descriptor deprecated

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

Deprecated: Use KeyRef.ProtoReflect.Descriptor instead.

func (*KeyRef) GetExpires

func (x *KeyRef) GetExpires() uint64

func (*KeyRef) GetId

func (x *KeyRef) GetId() uint64

func (*KeyRef) GetInResponseTo

func (x *KeyRef) GetInResponseTo() uint64

func (*KeyRef) GetIssuerIdUrl

func (x *KeyRef) GetIssuerIdUrl() string

func (*KeyRef) GetIssuerUrl

func (x *KeyRef) GetIssuerUrl() string

func (*KeyRef) GetKeyringId

func (x *KeyRef) GetKeyringId() string

func (*KeyRef) GetLabel

func (x *KeyRef) GetLabel() string

func (*KeyRef) ProtoMessage

func (*KeyRef) ProtoMessage()

func (*KeyRef) ProtoReflect

func (x *KeyRef) ProtoReflect() protoreflect.Message

func (*KeyRef) Reset

func (x *KeyRef) Reset()

func (*KeyRef) String

func (x *KeyRef) String() string

type KeySpec

type KeySpec struct {
	Id        uint64          `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Label     string          `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	Size      int32           `protobuf:"fixed32,3,opt,name=size,proto3" json:"size,omitempty"`
	Algo      KeygenAlgorithm `protobuf:"varint,4,opt,name=algo,proto3,enum=keystone.KeygenAlgorithm" json:"algo,omitempty"`
	KeyringId string          `protobuf:"bytes,5,opt,name=keyringId,proto3" json:"keyringId,omitempty"`
	// contains filtered or unexported fields
}

func (*KeySpec) Descriptor deprecated

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

Deprecated: Use KeySpec.ProtoReflect.Descriptor instead.

func (*KeySpec) GetAlgo

func (x *KeySpec) GetAlgo() KeygenAlgorithm

func (*KeySpec) GetId

func (x *KeySpec) GetId() uint64

func (*KeySpec) GetKeyringId

func (x *KeySpec) GetKeyringId() string

func (*KeySpec) GetLabel

func (x *KeySpec) GetLabel() string

func (*KeySpec) GetSize

func (x *KeySpec) GetSize() int32

func (*KeySpec) ProtoMessage

func (*KeySpec) ProtoMessage()

func (*KeySpec) ProtoReflect

func (x *KeySpec) ProtoReflect() protoreflect.Message

func (*KeySpec) Reset

func (x *KeySpec) Reset()

func (*KeySpec) String

func (x *KeySpec) String() string

type KeygenAlgorithm

type KeygenAlgorithm int32

keygenAlgorithm is the algorithm that should be used for generating a key - typically the EC curve in use that the key is related to.

const (
	KeygenAlgorithm_KEYGEN_SECP256K1 KeygenAlgorithm = 0
	KeygenAlgorithm_KEYGEN_SECP256R1 KeygenAlgorithm = 1
	KeygenAlgorithm_KEYGEN_ED25519   KeygenAlgorithm = 2
)

func (KeygenAlgorithm) Descriptor

func (KeygenAlgorithm) Enum

func (x KeygenAlgorithm) Enum() *KeygenAlgorithm

func (KeygenAlgorithm) EnumDescriptor deprecated

func (KeygenAlgorithm) EnumDescriptor() ([]byte, []int)

Deprecated: Use KeygenAlgorithm.Descriptor instead.

func (KeygenAlgorithm) Number

func (KeygenAlgorithm) String

func (x KeygenAlgorithm) String() string

func (KeygenAlgorithm) Type

type KeyrefList

type KeyrefList struct {
	Id           uint64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	InResponseTo uint64    `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"`
	Label        []*KeyRef `protobuf:"bytes,3,rep,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyrefList) Descriptor deprecated

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

Deprecated: Use KeyrefList.ProtoReflect.Descriptor instead.

func (*KeyrefList) GetId

func (x *KeyrefList) GetId() uint64

func (*KeyrefList) GetInResponseTo

func (x *KeyrefList) GetInResponseTo() uint64

func (*KeyrefList) GetLabel

func (x *KeyrefList) GetLabel() []*KeyRef

func (*KeyrefList) ProtoMessage

func (*KeyrefList) ProtoMessage()

func (*KeyrefList) ProtoReflect

func (x *KeyrefList) ProtoReflect() protoreflect.Message

func (*KeyrefList) Reset

func (x *KeyrefList) Reset()

func (*KeyrefList) String

func (x *KeyrefList) String() string

type KeyringAdminClient

type KeyringAdminClient interface {
	NewKeyring(ctx context.Context, in *KeyringSpec, opts ...grpc.CallOption) (*KeyringRef, error)
	Keys(ctx context.Context, in *KeyringSpec, opts ...grpc.CallOption) (*KeyrefList, error)
	Label(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*KeyringLabel, error)
	Remove(ctx context.Context, in *KeySpec, opts ...grpc.CallOption) (*Result, error)
}

KeyringAdminClient is the client API for KeyringAdmin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type KeyringAdminServer

type KeyringAdminServer interface {
	NewKeyring(context.Context, *KeyringSpec) (*KeyringRef, error)
	Keys(context.Context, *KeyringSpec) (*KeyrefList, error)
	Label(context.Context, *Empty) (*KeyringLabel, error)
	Remove(context.Context, *KeySpec) (*Result, error)
	// contains filtered or unexported methods
}

KeyringAdminServer is the server API for KeyringAdmin service. All implementations must embed UnimplementedKeyringAdminServer for forward compatibility

type KeyringClient

type KeyringClient interface {
	Hello(ctx context.Context, in *Helo, opts ...grpc.CallOption) (*Ehlo, error)
	NewKey(ctx context.Context, in *KeySpec, opts ...grpc.CallOption) (*KeyRef, error)
	PubKey(ctx context.Context, in *KeySpec, opts ...grpc.CallOption) (*PublicKey, error)
	Key(ctx context.Context, in *KeySpec, opts ...grpc.CallOption) (*KeyRef, error)
	Metadata(ctx context.Context, in *KeySpec, opts ...grpc.CallOption) (*KeyMetadata, error)
	Sign(ctx context.Context, in *Msg, opts ...grpc.CallOption) (*Signed, error)
}

KeyringClient is the client API for Keyring service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewKeyringClient

func NewKeyringClient(cc grpc.ClientConnInterface) KeyringClient

type KeyringLabel

type KeyringLabel struct {
	Id           uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	InResponseTo uint64 `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"`
	Label        string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyringLabel) Descriptor deprecated

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

Deprecated: Use KeyringLabel.ProtoReflect.Descriptor instead.

func (*KeyringLabel) GetId

func (x *KeyringLabel) GetId() uint64

func (*KeyringLabel) GetInResponseTo

func (x *KeyringLabel) GetInResponseTo() uint64

func (*KeyringLabel) GetLabel

func (x *KeyringLabel) GetLabel() string

func (*KeyringLabel) ProtoMessage

func (*KeyringLabel) ProtoMessage()

func (*KeyringLabel) ProtoReflect

func (x *KeyringLabel) ProtoReflect() protoreflect.Message

func (*KeyringLabel) Reset

func (x *KeyringLabel) Reset()

func (*KeyringLabel) String

func (x *KeyringLabel) String() string

type KeyringRef

type KeyringRef struct {
	Id           uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	InResponseTo uint64 `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"`
	Label        string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
	IssuerUrl    string `protobuf:"bytes,4,opt,name=issuerUrl,proto3" json:"issuerUrl,omitempty"`
	Expires      uint64 `protobuf:"varint,5,opt,name=expires,proto3" json:"expires,omitempty"`
	IssuerIdUrl  string `protobuf:"bytes,6,opt,name=issuerIdUrl,proto3" json:"issuerIdUrl,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyringRef) Descriptor deprecated

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

Deprecated: Use KeyringRef.ProtoReflect.Descriptor instead.

func (*KeyringRef) GetExpires

func (x *KeyringRef) GetExpires() uint64

func (*KeyringRef) GetId

func (x *KeyringRef) GetId() uint64

func (*KeyringRef) GetInResponseTo

func (x *KeyringRef) GetInResponseTo() uint64

func (*KeyringRef) GetIssuerIdUrl

func (x *KeyringRef) GetIssuerIdUrl() string

func (*KeyringRef) GetIssuerUrl

func (x *KeyringRef) GetIssuerUrl() string

func (*KeyringRef) GetLabel

func (x *KeyringRef) GetLabel() string

func (*KeyringRef) ProtoMessage

func (*KeyringRef) ProtoMessage()

func (*KeyringRef) ProtoReflect

func (x *KeyringRef) ProtoReflect() protoreflect.Message

func (*KeyringRef) Reset

func (x *KeyringRef) Reset()

func (*KeyringRef) String

func (x *KeyringRef) String() string

type KeyringServer

type KeyringServer interface {
	Hello(context.Context, *Helo) (*Ehlo, error)
	NewKey(context.Context, *KeySpec) (*KeyRef, error)
	PubKey(context.Context, *KeySpec) (*PublicKey, error)
	Key(context.Context, *KeySpec) (*KeyRef, error)
	Metadata(context.Context, *KeySpec) (*KeyMetadata, error)
	Sign(context.Context, *Msg) (*Signed, error)
	// contains filtered or unexported methods
}

KeyringServer is the server API for Keyring service. All implementations must embed UnimplementedKeyringServer for forward compatibility

type KeyringSpec

type KeyringSpec struct {
	Id    uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyringSpec) Descriptor deprecated

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

Deprecated: Use KeyringSpec.ProtoReflect.Descriptor instead.

func (*KeyringSpec) GetId

func (x *KeyringSpec) GetId() uint64

func (*KeyringSpec) GetLabel

func (x *KeyringSpec) GetLabel() string

func (*KeyringSpec) ProtoMessage

func (*KeyringSpec) ProtoMessage()

func (*KeyringSpec) ProtoReflect

func (x *KeyringSpec) ProtoReflect() protoreflect.Message

func (*KeyringSpec) Reset

func (x *KeyringSpec) Reset()

func (*KeyringSpec) String

func (x *KeyringSpec) String() string

type Msg

type Msg struct {
	Id             uint64         `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	InResponseTo   uint64         `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"`
	KeySpec        *KeySpec       `protobuf:"bytes,3,opt,name=keySpec,proto3" json:"keySpec,omitempty"`
	SigningProfile SigningProfile `protobuf:"varint,4,opt,name=signingProfile,proto3,enum=keystone.SigningProfile" json:"signingProfile,omitempty"`
	Content        *Signable      `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*Msg) Descriptor deprecated

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

Deprecated: Use Msg.ProtoReflect.Descriptor instead.

func (*Msg) GetContent

func (x *Msg) GetContent() *Signable

func (*Msg) GetId

func (x *Msg) GetId() uint64

func (*Msg) GetInResponseTo

func (x *Msg) GetInResponseTo() uint64

func (*Msg) GetKeySpec

func (x *Msg) GetKeySpec() *KeySpec

func (*Msg) GetSigningProfile

func (x *Msg) GetSigningProfile() SigningProfile

func (*Msg) ProtoMessage

func (*Msg) ProtoMessage()

func (*Msg) ProtoReflect

func (x *Msg) ProtoReflect() protoreflect.Message

func (*Msg) Reset

func (x *Msg) Reset()

func (*Msg) String

func (x *Msg) String() string

type PublicKey

type PublicKey struct {
	Id           uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	InResponseTo uint64 `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"`
	Label        string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
	KeyBytes     []byte `protobuf:"bytes,4,opt,name=keyBytes,proto3" json:"keyBytes,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicKey) Descriptor deprecated

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

Deprecated: Use PublicKey.ProtoReflect.Descriptor instead.

func (*PublicKey) GetId

func (x *PublicKey) GetId() uint64

func (*PublicKey) GetInResponseTo

func (x *PublicKey) GetInResponseTo() uint64

func (*PublicKey) GetKeyBytes

func (x *PublicKey) GetKeyBytes() []byte

func (*PublicKey) GetLabel

func (x *PublicKey) GetLabel() string

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) ProtoReflect

func (x *PublicKey) ProtoReflect() protoreflect.Message

func (*PublicKey) Reset

func (x *PublicKey) Reset()

func (*PublicKey) String

func (x *PublicKey) String() string

type Result

type Result struct {
	Id           uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	InResponseTo uint64 `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"`
	// error == 0 indicates success, any non-zero error is an actual error
	Error int32 `protobuf:"varint,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetError

func (x *Result) GetError() int32

func (*Result) GetId

func (x *Result) GetId() uint64

func (*Result) GetInResponseTo

func (x *Result) GetInResponseTo() uint64

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

func (x *Result) ProtoReflect() protoreflect.Message

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type Signable

type Signable struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to Data:
	//	*Signable_SignableBytes
	//	*Signable_Txref
	Data isSignable_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*Signable) Descriptor deprecated

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

Deprecated: Use Signable.ProtoReflect.Descriptor instead.

func (*Signable) GetData

func (m *Signable) GetData() isSignable_Data

func (*Signable) GetId

func (x *Signable) GetId() uint64

func (*Signable) GetSignableBytes

func (x *Signable) GetSignableBytes() []byte

func (*Signable) GetTxref

func (x *Signable) GetTxref() string

func (*Signable) ProtoMessage

func (*Signable) ProtoMessage()

func (*Signable) ProtoReflect

func (x *Signable) ProtoReflect() protoreflect.Message

func (*Signable) Reset

func (x *Signable) Reset()

func (*Signable) String

func (x *Signable) String() string

type Signable_SignableBytes

type Signable_SignableBytes struct {
	SignableBytes []byte `protobuf:"bytes,2,opt,name=signableBytes,proto3,oneof"`
}

type Signable_Txref

type Signable_Txref struct {
	Txref string `protobuf:"bytes,3,opt,name=txref,proto3,oneof"`
}

type Signed

type Signed struct {
	Id           uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	InResponseTo uint64 `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"`
	// Types that are assignable to Data:
	//	*Signed_SignedBytes
	//	*Signed_SignedTxRef
	//	*Signed_Error
	Data isSigned_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*Signed) Descriptor deprecated

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

Deprecated: Use Signed.ProtoReflect.Descriptor instead.

func (*Signed) GetData

func (m *Signed) GetData() isSigned_Data

func (*Signed) GetError

func (x *Signed) GetError() int32

func (*Signed) GetId

func (x *Signed) GetId() uint64

func (*Signed) GetInResponseTo

func (x *Signed) GetInResponseTo() uint64

func (*Signed) GetSignedBytes

func (x *Signed) GetSignedBytes() []byte

func (*Signed) GetSignedTxRef

func (x *Signed) GetSignedTxRef() string

func (*Signed) ProtoMessage

func (*Signed) ProtoMessage()

func (*Signed) ProtoReflect

func (x *Signed) ProtoReflect() protoreflect.Message

func (*Signed) Reset

func (x *Signed) Reset()

func (*Signed) String

func (x *Signed) String() string

type Signed_Error

type Signed_Error struct {
	Error int32 `protobuf:"varint,5,opt,name=error,proto3,oneof"`
}

type Signed_SignedBytes

type Signed_SignedBytes struct {
	SignedBytes []byte `protobuf:"bytes,3,opt,name=signedBytes,proto3,oneof"`
}

type Signed_SignedTxRef

type Signed_SignedTxRef struct {
	SignedTxRef string `protobuf:"bytes,4,opt,name=signedTxRef,proto3,oneof"`
}

type SigningProfile

type SigningProfile int32
const (
	// ECDSA signing, SHA256 prior to signature, low-s normalization,
	// and raw r, s values instead of ASN
	SigningProfile_PROFILE_BC_ECDSA_SHA256 SigningProfile = 0
	// ECDSA signing, SHA512 prior to signature, low-s normalization,
	// and raw r, s values instead of google.protobuf.EmptyASN
	SigningProfile_PROFILE_BC_ECDSA_SHA512 SigningProfile = 1
	// ECDSA signing, SHA256 prior to signature, no normalization, and
	// standard ASN1 encoding
	SigningProfile_PROFILE_ECDSA_SHA256 SigningProfile = 2
	// ECDSA signing, caller is expected to hash (or not), standard ASN1
	// encoding
	SigningProfile_PROFILE_ECDSA_NOHASH SigningProfile = 3
)

func (SigningProfile) Descriptor

func (SigningProfile) Enum

func (x SigningProfile) Enum() *SigningProfile

func (SigningProfile) EnumDescriptor deprecated

func (SigningProfile) EnumDescriptor() ([]byte, []int)

Deprecated: Use SigningProfile.Descriptor instead.

func (SigningProfile) Number

func (SigningProfile) String

func (x SigningProfile) String() string

func (SigningProfile) Type

type UnimplementedKeyringAdminServer

type UnimplementedKeyringAdminServer struct {
}

UnimplementedKeyringAdminServer must be embedded to have forward compatible implementations.

func (UnimplementedKeyringAdminServer) Keys

func (UnimplementedKeyringAdminServer) Label

func (UnimplementedKeyringAdminServer) NewKeyring

func (UnimplementedKeyringAdminServer) Remove

type UnimplementedKeyringServer

type UnimplementedKeyringServer struct {
}

UnimplementedKeyringServer must be embedded to have forward compatible implementations.

func (UnimplementedKeyringServer) Hello

func (UnimplementedKeyringServer) Key

func (UnimplementedKeyringServer) Metadata

func (UnimplementedKeyringServer) NewKey

func (UnimplementedKeyringServer) PubKey

func (UnimplementedKeyringServer) Sign

type UnsafeKeyringAdminServer

type UnsafeKeyringAdminServer interface {
	// contains filtered or unexported methods
}

UnsafeKeyringAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeyringAdminServer will result in compilation errors.

type UnsafeKeyringServer

type UnsafeKeyringServer interface {
	// contains filtered or unexported methods
}

UnsafeKeyringServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeyringServer will result in compilation errors.

Jump to

Keyboard shortcuts

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