v0

package
v7.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HashAlgorithm_name = map[int32]string{
		0: "MissingHashAlgorithm",
		1: "Sha256",
	}
	HashAlgorithm_value = map[string]int32{
		"MissingHashAlgorithm": 0,
		"Sha256":               1,
	}
)

Enum value maps for HashAlgorithm.

View Source
var (
	HmacAlgorithm_name = map[int32]string{
		0: "MissingHmacAlgorithm",
		1: "HmacSha256",
	}
	HmacAlgorithm_value = map[string]int32{
		"MissingHmacAlgorithm": 0,
		"HmacSha256":           1,
	}
)

Enum value maps for HmacAlgorithm.

View Source
var (
	SignatureFormat_name = map[int32]string{
		0: "MissingSignatureFormat",
		1: "RawSignatureFormat",
	}
	SignatureFormat_value = map[string]int32{
		"MissingSignatureFormat": 0,
		"RawSignatureFormat":     1,
	}
)

Enum value maps for SignatureFormat.

View Source
var (
	KeyPurpose_name = map[int32]string{
		0: "UnknownKeyPurpose",
		1: "SigningKeyPurpose",
		2: "EncryptionKeyPurpose",
	}
	KeyPurpose_value = map[string]int32{
		"UnknownKeyPurpose":    0,
		"SigningKeyPurpose":    1,
		"EncryptionKeyPurpose": 2,
	}
)

Enum value maps for KeyPurpose.

View Source
var (
	SigningKeyScheme_name = map[int32]string{
		0: "MissingSigningKeyScheme",
		1: "Ed25519",
		2: "EcDsaP256",
		3: "EcDsaP384",
		4: "Sm2",
	}
	SigningKeyScheme_value = map[string]int32{
		"MissingSigningKeyScheme": 0,
		"Ed25519":                 1,
		"EcDsaP256":               2,
		"EcDsaP384":               3,
		"Sm2":                     4,
	}
)

Enum value maps for SigningKeyScheme.

View Source
var (
	EncryptionKeyScheme_name = map[int32]string{
		0: "MissingEncryptionKeyScheme",
		1: "EciesP256HkdfHmacSha256Aes128Gcm",
		2: "EciesP256HmacSha256Aes128Cbc",
		3: "Rsa2048OaepSha256",
	}
	EncryptionKeyScheme_value = map[string]int32{
		"MissingEncryptionKeyScheme":       0,
		"EciesP256HkdfHmacSha256Aes128Gcm": 1,
		"EciesP256HmacSha256Aes128Cbc":     2,
		"Rsa2048OaepSha256":                3,
	}
)

Enum value maps for EncryptionKeyScheme.

View Source
var (
	SymmetricKeyScheme_name = map[int32]string{
		0: "MissingSymmetricKeyScheme",
		1: "Aes128Gcm",
	}
	SymmetricKeyScheme_value = map[string]int32{
		"MissingSymmetricKeyScheme": 0,
		"Aes128Gcm":                 1,
	}
)

Enum value maps for SymmetricKeyScheme.

View Source
var (
	CryptoKeyFormat_name = map[int32]string{
		0:     "MissingCryptoKeyFormat",
		1:     "Tink",
		2:     "Der",
		3:     "Raw",
		10000: "Symbolic",
	}
	CryptoKeyFormat_value = map[string]int32{
		"MissingCryptoKeyFormat": 0,
		"Tink":                   1,
		"Der":                    2,
		"Raw":                    3,
		"Symbolic":               10000,
	}
)

Enum value maps for CryptoKeyFormat.

View Source
var File_com_digitalasset_canton_crypto_v0_crypto_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CryptoKeyFormat

type CryptoKeyFormat int32

Serialization format for crypto keys and signatures

const (
	CryptoKeyFormat_MissingCryptoKeyFormat CryptoKeyFormat = 0
	// Tink's KeySet proto serialization format
	// https://github.com/google/tink/tree/1.5/proto
	CryptoKeyFormat_Tink CryptoKeyFormat = 1
	// ASN.1 + DER encoding
	CryptoKeyFormat_Der CryptoKeyFormat = 2
	// Raw encoding of a key, typically used for symmetric keys or Ed25519 keypairs.
	CryptoKeyFormat_Raw CryptoKeyFormat = 3
	// Symbolic crypto, must only be used for testing
	CryptoKeyFormat_Symbolic CryptoKeyFormat = 10000
)

func (CryptoKeyFormat) Descriptor

func (CryptoKeyFormat) Enum

func (x CryptoKeyFormat) Enum() *CryptoKeyFormat

func (CryptoKeyFormat) EnumDescriptor deprecated

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

Deprecated: Use CryptoKeyFormat.Descriptor instead.

func (CryptoKeyFormat) Number

func (CryptoKeyFormat) String

func (x CryptoKeyFormat) String() string

func (CryptoKeyFormat) Type

type CryptoKeyPair

type CryptoKeyPair struct {

	// Types that are assignable to Pair:
	//	*CryptoKeyPair_SigningKeyPair
	//	*CryptoKeyPair_EncryptionKeyPair
	Pair isCryptoKeyPair_Pair `protobuf_oneof:"pair"`
	// contains filtered or unexported fields
}

func (*CryptoKeyPair) Descriptor deprecated

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

Deprecated: Use CryptoKeyPair.ProtoReflect.Descriptor instead.

func (*CryptoKeyPair) GetEncryptionKeyPair

func (x *CryptoKeyPair) GetEncryptionKeyPair() *EncryptionKeyPair

func (*CryptoKeyPair) GetPair

func (m *CryptoKeyPair) GetPair() isCryptoKeyPair_Pair

func (*CryptoKeyPair) GetSigningKeyPair

func (x *CryptoKeyPair) GetSigningKeyPair() *SigningKeyPair

func (*CryptoKeyPair) ProtoMessage

func (*CryptoKeyPair) ProtoMessage()

func (*CryptoKeyPair) ProtoReflect

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

func (*CryptoKeyPair) Reset

func (x *CryptoKeyPair) Reset()

func (*CryptoKeyPair) String

func (x *CryptoKeyPair) String() string

type CryptoKeyPair_EncryptionKeyPair

type CryptoKeyPair_EncryptionKeyPair struct {
	EncryptionKeyPair *EncryptionKeyPair `protobuf:"bytes,2,opt,name=encryption_key_pair,json=encryptionKeyPair,proto3,oneof"`
}

type CryptoKeyPair_SigningKeyPair

type CryptoKeyPair_SigningKeyPair struct {
	SigningKeyPair *SigningKeyPair `protobuf:"bytes,1,opt,name=signing_key_pair,json=signingKeyPair,proto3,oneof"`
}

type EncryptionKeyPair

type EncryptionKeyPair struct {
	PublicKey  *EncryptionPublicKey  `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	PrivateKey *EncryptionPrivateKey `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptionKeyPair) Descriptor deprecated

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

Deprecated: Use EncryptionKeyPair.ProtoReflect.Descriptor instead.

func (*EncryptionKeyPair) GetPrivateKey

func (x *EncryptionKeyPair) GetPrivateKey() *EncryptionPrivateKey

func (*EncryptionKeyPair) GetPublicKey

func (x *EncryptionKeyPair) GetPublicKey() *EncryptionPublicKey

func (*EncryptionKeyPair) ProtoMessage

func (*EncryptionKeyPair) ProtoMessage()

func (*EncryptionKeyPair) ProtoReflect

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

func (*EncryptionKeyPair) Reset

func (x *EncryptionKeyPair) Reset()

func (*EncryptionKeyPair) String

func (x *EncryptionKeyPair) String() string

type EncryptionKeyScheme

type EncryptionKeyScheme int32
const (
	EncryptionKeyScheme_MissingEncryptionKeyScheme EncryptionKeyScheme = 0
	// ECIES with ECDH over NIST P-256, AES128 GCM, and HKDF with HMAC-SHA256
	EncryptionKeyScheme_EciesP256HkdfHmacSha256Aes128Gcm EncryptionKeyScheme = 1
	// ECIES with ECDH over NIST P-256, AES128 CBC, and HKDF and authentication with HMAC-SHA256
	EncryptionKeyScheme_EciesP256HmacSha256Aes128Cbc EncryptionKeyScheme = 2
	// RSA with a 2048 bit key with OAEP Padding,
	//using SHA-256 for both the hash and in the MGF1 mask generation function along with an empty label.
	EncryptionKeyScheme_Rsa2048OaepSha256 EncryptionKeyScheme = 3
)

func (EncryptionKeyScheme) Descriptor

func (EncryptionKeyScheme) Enum

func (EncryptionKeyScheme) EnumDescriptor deprecated

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

Deprecated: Use EncryptionKeyScheme.Descriptor instead.

func (EncryptionKeyScheme) Number

func (EncryptionKeyScheme) String

func (x EncryptionKeyScheme) String() string

func (EncryptionKeyScheme) Type

type EncryptionPrivateKey

type EncryptionPrivateKey struct {
	Id     string          `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Format CryptoKeyFormat `protobuf:"varint,2,opt,name=format,proto3,enum=com.digitalasset.canton.crypto.v0.CryptoKeyFormat" json:"format,omitempty"`
	// Serialized private key in the format specified above
	PrivateKey []byte `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// Explicit state the key scheme of the serialized private key
	Scheme EncryptionKeyScheme `protobuf:"varint,4,opt,name=scheme,proto3,enum=com.digitalasset.canton.crypto.v0.EncryptionKeyScheme" json:"scheme,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptionPrivateKey) Descriptor deprecated

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

Deprecated: Use EncryptionPrivateKey.ProtoReflect.Descriptor instead.

func (*EncryptionPrivateKey) GetFormat

func (x *EncryptionPrivateKey) GetFormat() CryptoKeyFormat

func (*EncryptionPrivateKey) GetId

func (x *EncryptionPrivateKey) GetId() string

func (*EncryptionPrivateKey) GetPrivateKey

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

func (*EncryptionPrivateKey) GetScheme

func (*EncryptionPrivateKey) ProtoMessage

func (*EncryptionPrivateKey) ProtoMessage()

func (*EncryptionPrivateKey) ProtoReflect

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

func (*EncryptionPrivateKey) Reset

func (x *EncryptionPrivateKey) Reset()

func (*EncryptionPrivateKey) String

func (x *EncryptionPrivateKey) String() string

type EncryptionPublicKey

type EncryptionPublicKey struct {
	Id     string          `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Format CryptoKeyFormat `protobuf:"varint,2,opt,name=format,proto3,enum=com.digitalasset.canton.crypto.v0.CryptoKeyFormat" json:"format,omitempty"`
	// Serialized public key in the format specified above
	PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// Explicit state the key scheme of the serialized public key
	Scheme EncryptionKeyScheme `protobuf:"varint,4,opt,name=scheme,proto3,enum=com.digitalasset.canton.crypto.v0.EncryptionKeyScheme" json:"scheme,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptionPublicKey) Descriptor deprecated

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

Deprecated: Use EncryptionPublicKey.ProtoReflect.Descriptor instead.

func (*EncryptionPublicKey) GetFormat

func (x *EncryptionPublicKey) GetFormat() CryptoKeyFormat

func (*EncryptionPublicKey) GetId

func (x *EncryptionPublicKey) GetId() string

func (*EncryptionPublicKey) GetPublicKey

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

func (*EncryptionPublicKey) GetScheme

func (*EncryptionPublicKey) ProtoMessage

func (*EncryptionPublicKey) ProtoMessage()

func (*EncryptionPublicKey) ProtoReflect

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

func (*EncryptionPublicKey) Reset

func (x *EncryptionPublicKey) Reset()

func (*EncryptionPublicKey) String

func (x *EncryptionPublicKey) String() string

type HashAlgorithm

type HashAlgorithm int32
const (
	HashAlgorithm_MissingHashAlgorithm HashAlgorithm = 0
	HashAlgorithm_Sha256               HashAlgorithm = 1
)

func (HashAlgorithm) Descriptor

func (HashAlgorithm) Enum

func (x HashAlgorithm) Enum() *HashAlgorithm

func (HashAlgorithm) EnumDescriptor deprecated

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

Deprecated: Use HashAlgorithm.Descriptor instead.

func (HashAlgorithm) Number

func (HashAlgorithm) String

func (x HashAlgorithm) String() string

func (HashAlgorithm) Type

type Hmac

type Hmac struct {
	Algorithm HmacAlgorithm `protobuf:"varint,1,opt,name=algorithm,proto3,enum=com.digitalasset.canton.crypto.v0.HmacAlgorithm" json:"algorithm,omitempty"`
	Hmac      []byte        `protobuf:"bytes,2,opt,name=hmac,proto3" json:"hmac,omitempty"`
	// contains filtered or unexported fields
}

func (*Hmac) Descriptor deprecated

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

Deprecated: Use Hmac.ProtoReflect.Descriptor instead.

func (*Hmac) GetAlgorithm

func (x *Hmac) GetAlgorithm() HmacAlgorithm

func (*Hmac) GetHmac

func (x *Hmac) GetHmac() []byte

func (*Hmac) ProtoMessage

func (*Hmac) ProtoMessage()

func (*Hmac) ProtoReflect

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

func (*Hmac) Reset

func (x *Hmac) Reset()

func (*Hmac) String

func (x *Hmac) String() string

type HmacAlgorithm

type HmacAlgorithm int32
const (
	HmacAlgorithm_MissingHmacAlgorithm HmacAlgorithm = 0
	HmacAlgorithm_HmacSha256           HmacAlgorithm = 1
)

func (HmacAlgorithm) Descriptor

func (HmacAlgorithm) Enum

func (x HmacAlgorithm) Enum() *HmacAlgorithm

func (HmacAlgorithm) EnumDescriptor deprecated

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

Deprecated: Use HmacAlgorithm.Descriptor instead.

func (HmacAlgorithm) Number

func (HmacAlgorithm) String

func (x HmacAlgorithm) String() string

func (HmacAlgorithm) Type

type KeyPurpose

type KeyPurpose int32
const (
	KeyPurpose_UnknownKeyPurpose    KeyPurpose = 0
	KeyPurpose_SigningKeyPurpose    KeyPurpose = 1
	KeyPurpose_EncryptionKeyPurpose KeyPurpose = 2
)

func (KeyPurpose) Descriptor

func (KeyPurpose) Descriptor() protoreflect.EnumDescriptor

func (KeyPurpose) Enum

func (x KeyPurpose) Enum() *KeyPurpose

func (KeyPurpose) EnumDescriptor deprecated

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

Deprecated: Use KeyPurpose.Descriptor instead.

func (KeyPurpose) Number

func (x KeyPurpose) Number() protoreflect.EnumNumber

func (KeyPurpose) String

func (x KeyPurpose) String() string

func (KeyPurpose) Type

type PrivateKey

type PrivateKey struct {

	// Types that are assignable to Key:
	//	*PrivateKey_SigningPrivateKey
	//	*PrivateKey_EncryptionPrivateKey
	Key isPrivateKey_Key `protobuf_oneof:"key"`
	// contains filtered or unexported fields
}

func (*PrivateKey) Descriptor deprecated

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

Deprecated: Use PrivateKey.ProtoReflect.Descriptor instead.

func (*PrivateKey) GetEncryptionPrivateKey

func (x *PrivateKey) GetEncryptionPrivateKey() *EncryptionPrivateKey

func (*PrivateKey) GetKey

func (m *PrivateKey) GetKey() isPrivateKey_Key

func (*PrivateKey) GetSigningPrivateKey

func (x *PrivateKey) GetSigningPrivateKey() *SigningPrivateKey

func (*PrivateKey) ProtoMessage

func (*PrivateKey) ProtoMessage()

func (*PrivateKey) ProtoReflect

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

func (*PrivateKey) Reset

func (x *PrivateKey) Reset()

func (*PrivateKey) String

func (x *PrivateKey) String() string

type PrivateKey_EncryptionPrivateKey

type PrivateKey_EncryptionPrivateKey struct {
	EncryptionPrivateKey *EncryptionPrivateKey `protobuf:"bytes,2,opt,name=encryption_private_key,json=encryptionPrivateKey,proto3,oneof"`
}

type PrivateKey_SigningPrivateKey

type PrivateKey_SigningPrivateKey struct {
	SigningPrivateKey *SigningPrivateKey `protobuf:"bytes,1,opt,name=signing_private_key,json=signingPrivateKey,proto3,oneof"`
}

type PublicKey

type PublicKey struct {

	// Types that are assignable to Key:
	//	*PublicKey_SigningPublicKey
	//	*PublicKey_EncryptionPublicKey
	Key isPublicKey_Key `protobuf_oneof:"key"`
	// contains filtered or unexported fields
}

func (*PublicKey) Descriptor deprecated

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

Deprecated: Use PublicKey.ProtoReflect.Descriptor instead.

func (*PublicKey) GetEncryptionPublicKey

func (x *PublicKey) GetEncryptionPublicKey() *EncryptionPublicKey

func (*PublicKey) GetKey

func (m *PublicKey) GetKey() isPublicKey_Key

func (*PublicKey) GetSigningPublicKey

func (x *PublicKey) GetSigningPublicKey() *SigningPublicKey

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 PublicKeyWithName

type PublicKeyWithName struct {
	PublicKey *PublicKey `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// Optional name of the public key
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicKeyWithName) Descriptor deprecated

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

Deprecated: Use PublicKeyWithName.ProtoReflect.Descriptor instead.

func (*PublicKeyWithName) GetName

func (x *PublicKeyWithName) GetName() string

func (*PublicKeyWithName) GetPublicKey

func (x *PublicKeyWithName) GetPublicKey() *PublicKey

func (*PublicKeyWithName) ProtoMessage

func (*PublicKeyWithName) ProtoMessage()

func (*PublicKeyWithName) ProtoReflect

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

func (*PublicKeyWithName) Reset

func (x *PublicKeyWithName) Reset()

func (*PublicKeyWithName) String

func (x *PublicKeyWithName) String() string

type PublicKey_EncryptionPublicKey

type PublicKey_EncryptionPublicKey struct {
	EncryptionPublicKey *EncryptionPublicKey `protobuf:"bytes,2,opt,name=encryption_public_key,json=encryptionPublicKey,proto3,oneof"`
}

type PublicKey_SigningPublicKey

type PublicKey_SigningPublicKey struct {
	SigningPublicKey *SigningPublicKey `protobuf:"bytes,1,opt,name=signing_public_key,json=signingPublicKey,proto3,oneof"`
}

type Salt

type Salt struct {

	// Types that are assignable to Algorithm:
	//	*Salt_Hmac
	Algorithm isSalt_Algorithm `protobuf_oneof:"algorithm"`
	Salt      []byte           `protobuf:"bytes,2,opt,name=salt,proto3" json:"salt,omitempty"`
	// contains filtered or unexported fields
}

func (*Salt) Descriptor deprecated

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

Deprecated: Use Salt.ProtoReflect.Descriptor instead.

func (*Salt) GetAlgorithm

func (m *Salt) GetAlgorithm() isSalt_Algorithm

func (*Salt) GetHmac

func (x *Salt) GetHmac() HmacAlgorithm

func (*Salt) GetSalt

func (x *Salt) GetSalt() []byte

func (*Salt) ProtoMessage

func (*Salt) ProtoMessage()

func (*Salt) ProtoReflect

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

func (*Salt) Reset

func (x *Salt) Reset()

func (*Salt) String

func (x *Salt) String() string

type Salt_Hmac

type Salt_Hmac struct {
	Hmac HmacAlgorithm `protobuf:"varint,1,opt,name=hmac,proto3,enum=com.digitalasset.canton.crypto.v0.HmacAlgorithm,oneof"`
}

type Signature

type Signature struct {
	Format    SignatureFormat `protobuf:"varint,1,opt,name=format,proto3,enum=com.digitalasset.canton.crypto.v0.SignatureFormat" json:"format,omitempty"`
	Signature []byte          `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// The fingerprint/id of the keypair used to create this signature and needed to verify.
	// The referenced key provides the context for the used signature scheme.
	SignedBy string `protobuf:"bytes,3,opt,name=signed_by,json=signedBy,proto3" json:"signed_by,omitempty"`
	// contains filtered or unexported fields
}

func (*Signature) Descriptor deprecated

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetFormat

func (x *Signature) GetFormat() SignatureFormat

func (*Signature) GetSignature

func (x *Signature) GetSignature() []byte

func (*Signature) GetSignedBy

func (x *Signature) GetSignedBy() string

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

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

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

type SignatureFormat

type SignatureFormat int32
const (
	SignatureFormat_MissingSignatureFormat SignatureFormat = 0
	// Signature scheme specific signature format
	SignatureFormat_RawSignatureFormat SignatureFormat = 1
)

func (SignatureFormat) Descriptor

func (SignatureFormat) Enum

func (x SignatureFormat) Enum() *SignatureFormat

func (SignatureFormat) EnumDescriptor deprecated

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

Deprecated: Use SignatureFormat.Descriptor instead.

func (SignatureFormat) Number

func (SignatureFormat) String

func (x SignatureFormat) String() string

func (SignatureFormat) Type

type SigningKeyPair

type SigningKeyPair struct {
	PublicKey  *SigningPublicKey  `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	PrivateKey *SigningPrivateKey `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// contains filtered or unexported fields
}

func (*SigningKeyPair) Descriptor deprecated

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

Deprecated: Use SigningKeyPair.ProtoReflect.Descriptor instead.

func (*SigningKeyPair) GetPrivateKey

func (x *SigningKeyPair) GetPrivateKey() *SigningPrivateKey

func (*SigningKeyPair) GetPublicKey

func (x *SigningKeyPair) GetPublicKey() *SigningPublicKey

func (*SigningKeyPair) ProtoMessage

func (*SigningKeyPair) ProtoMessage()

func (*SigningKeyPair) ProtoReflect

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

func (*SigningKeyPair) Reset

func (x *SigningKeyPair) Reset()

func (*SigningKeyPair) String

func (x *SigningKeyPair) String() string

type SigningKeyScheme

type SigningKeyScheme int32
const (
	SigningKeyScheme_MissingSigningKeyScheme SigningKeyScheme = 0
	// Signature based on Curve25519
	// http://ed25519.cr.yp.to/
	SigningKeyScheme_Ed25519 SigningKeyScheme = 1
	// EC-DSA with NIST curve P-256 or P-384
	SigningKeyScheme_EcDsaP256 SigningKeyScheme = 2
	SigningKeyScheme_EcDsaP384 SigningKeyScheme = 3
	// SM2 signature scheme, support dropped in >=2.7
	SigningKeyScheme_Sm2 SigningKeyScheme = 4
)

func (SigningKeyScheme) Descriptor

func (SigningKeyScheme) Enum

func (SigningKeyScheme) EnumDescriptor deprecated

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

Deprecated: Use SigningKeyScheme.Descriptor instead.

func (SigningKeyScheme) Number

func (SigningKeyScheme) String

func (x SigningKeyScheme) String() string

func (SigningKeyScheme) Type

type SigningPrivateKey

type SigningPrivateKey struct {
	Id     string          `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Format CryptoKeyFormat `protobuf:"varint,2,opt,name=format,proto3,enum=com.digitalasset.canton.crypto.v0.CryptoKeyFormat" json:"format,omitempty"`
	// Serialized private key in the format specified above
	PrivateKey []byte `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// Explicit state the key scheme of the serialized private key
	Scheme SigningKeyScheme `protobuf:"varint,4,opt,name=scheme,proto3,enum=com.digitalasset.canton.crypto.v0.SigningKeyScheme" json:"scheme,omitempty"`
	// contains filtered or unexported fields
}

func (*SigningPrivateKey) Descriptor deprecated

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

Deprecated: Use SigningPrivateKey.ProtoReflect.Descriptor instead.

func (*SigningPrivateKey) GetFormat

func (x *SigningPrivateKey) GetFormat() CryptoKeyFormat

func (*SigningPrivateKey) GetId

func (x *SigningPrivateKey) GetId() string

func (*SigningPrivateKey) GetPrivateKey

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

func (*SigningPrivateKey) GetScheme

func (x *SigningPrivateKey) GetScheme() SigningKeyScheme

func (*SigningPrivateKey) ProtoMessage

func (*SigningPrivateKey) ProtoMessage()

func (*SigningPrivateKey) ProtoReflect

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

func (*SigningPrivateKey) Reset

func (x *SigningPrivateKey) Reset()

func (*SigningPrivateKey) String

func (x *SigningPrivateKey) String() string

type SigningPublicKey

type SigningPublicKey struct {
	Id     string          `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Format CryptoKeyFormat `protobuf:"varint,2,opt,name=format,proto3,enum=com.digitalasset.canton.crypto.v0.CryptoKeyFormat" json:"format,omitempty"`
	// Serialized public key in the format specified above
	PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// Explicit state the key scheme of the serialized public key
	Scheme SigningKeyScheme `protobuf:"varint,4,opt,name=scheme,proto3,enum=com.digitalasset.canton.crypto.v0.SigningKeyScheme" json:"scheme,omitempty"`
	// contains filtered or unexported fields
}

func (*SigningPublicKey) Descriptor deprecated

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

Deprecated: Use SigningPublicKey.ProtoReflect.Descriptor instead.

func (*SigningPublicKey) GetFormat

func (x *SigningPublicKey) GetFormat() CryptoKeyFormat

func (*SigningPublicKey) GetId

func (x *SigningPublicKey) GetId() string

func (*SigningPublicKey) GetPublicKey

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

func (*SigningPublicKey) GetScheme

func (x *SigningPublicKey) GetScheme() SigningKeyScheme

func (*SigningPublicKey) ProtoMessage

func (*SigningPublicKey) ProtoMessage()

func (*SigningPublicKey) ProtoReflect

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

func (*SigningPublicKey) Reset

func (x *SigningPublicKey) Reset()

func (*SigningPublicKey) String

func (x *SigningPublicKey) String() string

type SymmetricKey

type SymmetricKey struct {
	Format CryptoKeyFormat    `protobuf:"varint,1,opt,name=format,proto3,enum=com.digitalasset.canton.crypto.v0.CryptoKeyFormat" json:"format,omitempty"`
	Key    []byte             `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Scheme SymmetricKeyScheme `protobuf:"varint,3,opt,name=scheme,proto3,enum=com.digitalasset.canton.crypto.v0.SymmetricKeyScheme" json:"scheme,omitempty"`
	// contains filtered or unexported fields
}

func (*SymmetricKey) Descriptor deprecated

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

Deprecated: Use SymmetricKey.ProtoReflect.Descriptor instead.

func (*SymmetricKey) GetFormat

func (x *SymmetricKey) GetFormat() CryptoKeyFormat

func (*SymmetricKey) GetKey

func (x *SymmetricKey) GetKey() []byte

func (*SymmetricKey) GetScheme

func (x *SymmetricKey) GetScheme() SymmetricKeyScheme

func (*SymmetricKey) ProtoMessage

func (*SymmetricKey) ProtoMessage()

func (*SymmetricKey) ProtoReflect

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

func (*SymmetricKey) Reset

func (x *SymmetricKey) Reset()

func (*SymmetricKey) String

func (x *SymmetricKey) String() string

type SymmetricKeyScheme

type SymmetricKeyScheme int32
const (
	SymmetricKeyScheme_MissingSymmetricKeyScheme SymmetricKeyScheme = 0
	// AES with 128bit keys in GCM
	SymmetricKeyScheme_Aes128Gcm SymmetricKeyScheme = 1
)

func (SymmetricKeyScheme) Descriptor

func (SymmetricKeyScheme) Enum

func (SymmetricKeyScheme) EnumDescriptor deprecated

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

Deprecated: Use SymmetricKeyScheme.Descriptor instead.

func (SymmetricKeyScheme) Number

func (SymmetricKeyScheme) String

func (x SymmetricKeyScheme) String() string

func (SymmetricKeyScheme) Type

Jump to

Keyboard shortcuts

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