Versions in this module Expand all Collapse all v1 v1.0.3 Nov 23, 2023 v1.0.2 Nov 24, 2022 Changes in this version + const MAXUINT32 + const MAXUINT64 + const MinHardenKey + const PaillierLength + const PublicKeyCompressedLength + const SHA512BlOCKSIZE + const SHA512PADDING + var ConstantSHA512 = []uint64 + var ErrHardenedKey = errors.New("the index can not produce any nonhardened key") + var ErrIdentityChildPublicKey = errors.New("identity child public key") + var ErrInputSizeLarge = errors.New("large input") + var ErrInvalidSeed = errors.New("invalid seed") + var ErrInvalidTranslation = errors.New("invalid translate") + var ErrNonHardenedKey = errors.New("the index can not produce any hardened key") + var ErrNotCorrectShare = errors.New("the share value is invalid") + var ErrNotReady = errors.New("not ready") + var ErrPeerNotFound = errors.New("peer message not found") + var ErrSliceLength = errors.New("two slices are different") + var ErrVerifyFailure = errors.New("the verify failures") + var File_github_com_getamis_alice_crypto_bip32_child_message_proto protoreflect.FileDescriptor + var Type_name = map[int32]string + var Type_value = map[string]int32 + func NewHmacSha512(key []byte) *hmacSHA512 + func NewShareManager(share *big.Int, pubKey *ecpointgrouplaw.ECPoint, chainCode []byte, depth byte) (*shareManager, error) + func Sha512Compression(p []byte, preState []uint64) []uint64 + func Sha512GetBlockWithPadding(p []byte) ([]byte, error) + type BodyEncH struct + EncH []byte + func (*BodyEncH) Descriptor() ([]byte, []int) + func (*BodyEncH) ProtoMessage() + func (x *BodyEncH) GetEncH() []byte + func (x *BodyEncH) ProtoReflect() protoreflect.Message + func (x *BodyEncH) Reset() + func (x *BodyEncH) String() string + type BodyInitial struct + GarcirMsg *circuit.GarbleCircuitMessage + OtRecMsg *ot.OtReceiverMessage + OtherInfoWire [][]byte + PubKey []byte + PubKeyN []byte + ShareGProofMsg *zkproof.SchnorrProofMessage + func (*BodyInitial) Descriptor() ([]byte, []int) + func (*BodyInitial) ProtoMessage() + func (x *BodyInitial) GetGarcirMsg() *circuit.GarbleCircuitMessage + func (x *BodyInitial) GetOtRecMsg() *ot.OtReceiverMessage + func (x *BodyInitial) GetOtherInfoWire() [][]byte + func (x *BodyInitial) GetPubKey() []byte + func (x *BodyInitial) GetPubKeyN() []byte + func (x *BodyInitial) GetShareGProofMsg() *zkproof.SchnorrProofMessage + func (x *BodyInitial) ProtoReflect() protoreflect.Message + func (x *BodyInitial) Reset() + func (x *BodyInitial) String() string + type BodyOtReceiver struct + OtExtReceiveMsg *ot.OtExtReceiveMessage + func (*BodyOtReceiver) Descriptor() ([]byte, []int) + func (*BodyOtReceiver) ProtoMessage() + func (x *BodyOtReceiver) GetOtExtReceiveMsg() *ot.OtExtReceiveMessage + func (x *BodyOtReceiver) ProtoReflect() protoreflect.Message + func (x *BodyOtReceiver) Reset() + func (x *BodyOtReceiver) String() string + type BodyOtSendResponse struct + OtExtSendResponseMsg *ot.OtExtSendResponseMessage + func (*BodyOtSendResponse) Descriptor() ([]byte, []int) + func (*BodyOtSendResponse) ProtoMessage() + func (x *BodyOtSendResponse) GetOtExtSendResponseMsg() *ot.OtExtSendResponseMessage + func (x *BodyOtSendResponse) ProtoReflect() protoreflect.Message + func (x *BodyOtSendResponse) Reset() + func (x *BodyOtSendResponse) String() string + type BodySh2Hash struct + Result []byte + Sh2Hash []byte + func (*BodySh2Hash) Descriptor() ([]byte, []int) + func (*BodySh2Hash) ProtoMessage() + func (x *BodySh2Hash) GetResult() []byte + func (x *BodySh2Hash) GetSh2Hash() []byte + func (x *BodySh2Hash) ProtoReflect() protoreflect.Message + func (x *BodySh2Hash) Reset() + func (x *BodySh2Hash) String() string + type Child struct + func NewAlice(peerManager types.PeerManager, sid []uint8, share *big.Int, ...) (*Child, error) + func NewBob(peerManager types.PeerManager, sid []uint8, share *big.Int, ...) (*Child, error) + func (m *Child) GetResult() (*Result, error) + func (m *Child) Start() + type Message struct + Body isMessage_Body + Id string + Type Type + func (*Message) Descriptor() ([]byte, []int) + func (*Message) ProtoMessage() + func (m *Message) GetBody() isMessage_Body + func (m *Message) GetMessageType() types.MessageType + func (m *Message) IsValid() bool + func (x *Message) GetEncH() *BodyEncH + func (x *Message) GetId() string + func (x *Message) GetInitial() *BodyInitial + func (x *Message) GetOtReceiver() *BodyOtReceiver + func (x *Message) GetOtSendResponse() *BodyOtSendResponse + func (x *Message) GetSh2Hash() *BodySh2Hash + func (x *Message) GetType() Type + func (x *Message) ProtoReflect() protoreflect.Message + func (x *Message) Reset() + func (x *Message) String() string + type Message_EncH struct + EncH *BodyEncH + type Message_Initial struct + Initial *BodyInitial + type Message_OtReceiver struct + OtReceiver *BodyOtReceiver + type Message_OtSendResponse struct + OtSendResponse *BodyOtSendResponse + type Message_Sh2Hash struct + Sh2Hash *BodySh2Hash + type Result struct + ChainCode []byte + Depth byte + PublicKey *ecpointgrouplaw.ECPoint + Translate *big.Int + type Type int32 + const Type_EncH + const Type_Initial + const Type_OtReceiver + const Type_OtSendResponse + const Type_Sh2Hash + func (Type) Descriptor() protoreflect.EnumDescriptor + func (Type) EnumDescriptor() ([]byte, []int) + func (Type) Type() protoreflect.EnumType + func (x Type) Enum() *Type + func (x Type) Number() protoreflect.EnumNumber + func (x Type) String() string