serialization

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_keystore_serialization_keystore_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Key

type Key struct {
	Name       string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	PrivateKey []byte `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	CreatedAt  int64  `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	KeyType    string `protobuf:"bytes,4,opt,name=key_type,json=keyType,proto3" json:"key_type,omitempty"`
	Metadata   []byte `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Key) Descriptor deprecated

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

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Key) GetCreatedAt

func (x *Key) GetCreatedAt() int64

func (*Key) GetKeyType

func (x *Key) GetKeyType() string

func (*Key) GetMetadata

func (x *Key) GetMetadata() []byte

func (*Key) GetName

func (x *Key) GetName() string

func (*Key) GetPrivateKey

func (x *Key) GetPrivateKey() []byte

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) ProtoReflect

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

func (*Key) Reset

func (x *Key) Reset()

func (*Key) String

func (x *Key) String() string

type Keystore

type Keystore struct {
	Keys []*Key `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

Keystore holds a list of keys. We use protobuf to serialize the whole keystore before encryption.

func (*Keystore) Descriptor deprecated

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

Deprecated: Use Keystore.ProtoReflect.Descriptor instead.

func (*Keystore) GetKeys

func (x *Keystore) GetKeys() []*Key

func (*Keystore) ProtoMessage

func (*Keystore) ProtoMessage()

func (*Keystore) ProtoReflect

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

func (*Keystore) Reset

func (x *Keystore) Reset()

func (*Keystore) String

func (x *Keystore) String() string

Jump to

Keyboard shortcuts

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