secp256k1_go_proto

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BitcoinCurveType_name = map[int32]string{
		0: "INVALID_BITCOIN_CURVE",
		2: "SECP256K1",
	}
	BitcoinCurveType_value = map[string]int32{
		"INVALID_BITCOIN_CURVE": 0,
		"SECP256K1":             2,
	}
)

Enum value maps for BitcoinCurveType.

View Source
var (
	Secp256K1SignatureEncoding_name = map[int32]string{
		0: "UNKNOWN_BITCOIN_ENCODING",
		1: "Bitcoin_IEEE_P1363",
		2: "Bitcoin_DER",
	}
	Secp256K1SignatureEncoding_value = map[string]int32{
		"UNKNOWN_BITCOIN_ENCODING": 0,
		"Bitcoin_IEEE_P1363":       1,
		"Bitcoin_DER":              2,
	}
)

Enum value maps for Secp256K1SignatureEncoding.

View Source
var File_proto_secp256k1_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BitcoinCurveType

type BitcoinCurveType int32
const (
	BitcoinCurveType_INVALID_BITCOIN_CURVE BitcoinCurveType = 0
	BitcoinCurveType_SECP256K1             BitcoinCurveType = 2
)

func (BitcoinCurveType) Descriptor

func (BitcoinCurveType) Enum

func (BitcoinCurveType) EnumDescriptor deprecated

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

Deprecated: Use BitcoinCurveType.Descriptor instead.

func (BitcoinCurveType) Number

func (BitcoinCurveType) String

func (x BitcoinCurveType) String() string

func (BitcoinCurveType) Type

type Secp256K1KeyFormat

type Secp256K1KeyFormat struct {
	Params *Secp256K1Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*Secp256K1KeyFormat) Descriptor deprecated

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

Deprecated: Use Secp256K1KeyFormat.ProtoReflect.Descriptor instead.

func (*Secp256K1KeyFormat) GetParams

func (x *Secp256K1KeyFormat) GetParams() *Secp256K1Params

func (*Secp256K1KeyFormat) ProtoMessage

func (*Secp256K1KeyFormat) ProtoMessage()

func (*Secp256K1KeyFormat) ProtoReflect

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

func (*Secp256K1KeyFormat) Reset

func (x *Secp256K1KeyFormat) Reset()

func (*Secp256K1KeyFormat) String

func (x *Secp256K1KeyFormat) String() string

type Secp256K1Params

type Secp256K1Params struct {
	HashType common_go_proto.HashType   `protobuf:"varint,1,opt,name=hash_type,json=hashType,proto3,enum=google.crypto.tink.HashType" json:"hash_type,omitempty"`
	Curve    BitcoinCurveType           `protobuf:"varint,2,opt,name=curve,proto3,enum=google.crypto.tink.BitcoinCurveType" json:"curve,omitempty"`
	Encoding Secp256K1SignatureEncoding `protobuf:"varint,3,opt,name=encoding,proto3,enum=google.crypto.tink.Secp256K1SignatureEncoding" json:"encoding,omitempty"`
	// contains filtered or unexported fields
}

func (*Secp256K1Params) Descriptor deprecated

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

Deprecated: Use Secp256K1Params.ProtoReflect.Descriptor instead.

func (*Secp256K1Params) GetCurve

func (x *Secp256K1Params) GetCurve() BitcoinCurveType

func (*Secp256K1Params) GetEncoding

func (*Secp256K1Params) GetHashType

func (x *Secp256K1Params) GetHashType() common_go_proto.HashType

func (*Secp256K1Params) ProtoMessage

func (*Secp256K1Params) ProtoMessage()

func (*Secp256K1Params) ProtoReflect

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

func (*Secp256K1Params) Reset

func (x *Secp256K1Params) Reset()

func (*Secp256K1Params) String

func (x *Secp256K1Params) String() string

type Secp256K1PrivateKey

type Secp256K1PrivateKey struct {
	Version   uint32              `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	PublicKey *Secp256K1PublicKey `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	KeyValue  []byte              `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"`
	// contains filtered or unexported fields
}

func (*Secp256K1PrivateKey) Descriptor deprecated

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

Deprecated: Use Secp256K1PrivateKey.ProtoReflect.Descriptor instead.

func (*Secp256K1PrivateKey) GetKeyValue

func (x *Secp256K1PrivateKey) GetKeyValue() []byte

func (*Secp256K1PrivateKey) GetPublicKey

func (x *Secp256K1PrivateKey) GetPublicKey() *Secp256K1PublicKey

func (*Secp256K1PrivateKey) GetVersion

func (x *Secp256K1PrivateKey) GetVersion() uint32

func (*Secp256K1PrivateKey) ProtoMessage

func (*Secp256K1PrivateKey) ProtoMessage()

func (*Secp256K1PrivateKey) ProtoReflect

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

func (*Secp256K1PrivateKey) Reset

func (x *Secp256K1PrivateKey) Reset()

func (*Secp256K1PrivateKey) String

func (x *Secp256K1PrivateKey) String() string

type Secp256K1PublicKey

type Secp256K1PublicKey struct {
	Version uint32           `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Params  *Secp256K1Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	X       []byte           `protobuf:"bytes,3,opt,name=x,proto3" json:"x,omitempty"`
	Y       []byte           `protobuf:"bytes,4,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

func (*Secp256K1PublicKey) Descriptor deprecated

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

Deprecated: Use Secp256K1PublicKey.ProtoReflect.Descriptor instead.

func (*Secp256K1PublicKey) GetParams

func (x *Secp256K1PublicKey) GetParams() *Secp256K1Params

func (*Secp256K1PublicKey) GetVersion

func (x *Secp256K1PublicKey) GetVersion() uint32

func (*Secp256K1PublicKey) GetX

func (x *Secp256K1PublicKey) GetX() []byte

func (*Secp256K1PublicKey) GetY

func (x *Secp256K1PublicKey) GetY() []byte

func (*Secp256K1PublicKey) ProtoMessage

func (*Secp256K1PublicKey) ProtoMessage()

func (*Secp256K1PublicKey) ProtoReflect

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

func (*Secp256K1PublicKey) Reset

func (x *Secp256K1PublicKey) Reset()

func (*Secp256K1PublicKey) String

func (x *Secp256K1PublicKey) String() string

type Secp256K1SignatureEncoding

type Secp256K1SignatureEncoding int32
const (
	Secp256K1SignatureEncoding_UNKNOWN_BITCOIN_ENCODING Secp256K1SignatureEncoding = 0
	Secp256K1SignatureEncoding_Bitcoin_IEEE_P1363       Secp256K1SignatureEncoding = 1
	Secp256K1SignatureEncoding_Bitcoin_DER              Secp256K1SignatureEncoding = 2
)

func (Secp256K1SignatureEncoding) Descriptor

func (Secp256K1SignatureEncoding) Enum

func (Secp256K1SignatureEncoding) EnumDescriptor deprecated

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

Deprecated: Use Secp256K1SignatureEncoding.Descriptor instead.

func (Secp256K1SignatureEncoding) Number

func (Secp256K1SignatureEncoding) String

func (Secp256K1SignatureEncoding) Type

Jump to

Keyboard shortcuts

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