Documentation
¶
Index ¶
Constants ¶
View Source
const (
KeyType = "bls"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type G1Point ¶
func NewG1Point ¶
func NewZeroG1Point ¶
func NewZeroG1Point() *G1Point
func (*G1Point) Deserialize ¶
type G2Point ¶
func NewG2Point ¶
func NewZeroG2Point ¶
func NewZeroG2Point() *G2Point
func (*G2Point) Deserialize ¶
type KeyPair ¶
type KeyPair struct {
PrivKey *PrivateKey
PubKey *G1Point
}
func GenRandomBlsKeys ¶
func NewKeyPair ¶
func NewKeyPair(sk *PrivateKey) *KeyPair
func NewKeyPairFromString ¶
func ReadPrivateKeyFromFile ¶
func (*KeyPair) GetPubKeyG1 ¶
func (*KeyPair) GetPubKeyG2 ¶
func (*KeyPair) SaveToFile ¶
SaveToFile saves the private key in an encrypted keystore file
func (*KeyPair) SignHashedToCurveMessage ¶
This signs a message on G1, and so will require a G2Pubkey to verify
func (*KeyPair) SignMessage ¶
This signs a message on G1, and so will require a G2Pubkey to verify
type PrivateKey ¶
func NewPrivateKey ¶
func NewPrivateKey(sk string) (*PrivateKey, error)
type PubKey ¶
func NewBlsPubKeyFromProto ¶
func NewBlsPubKeyFromProto(pubkeys avsiTypes.OperatorPubkeys) *PubKey
Click to show internal directories.
Click to hide internal directories.