Documentation ¶
Index ¶
- Constants
- func AggregateSignatures(signatures [][]byte) (aggSig []byte)
- func ComputeNonce(privKey *btcec.PrivateKey, message [32]byte) (nonce *big.Int, noncePubKey *btcec.PublicKey)
- func ComputeSignature(privKey *btcec.PrivateKey, nonce *big.Int, challenge []byte) []byte
- func ComputeSignatureMulti(privKeys []*btcec.PrivateKey, message [32]byte, challenge []byte) (signatures [][]byte)
- func NumberFromByte(buf []byte) uint64
- type EthAddress
- func ComputeSigningParams(pubKeys []*btcec.PublicKey, noncePubKeys []*btcec.PublicKey, message [32]byte) (aggPubKey *btcec.PublicKey, challenge []byte, commitment EthAddress)
- func SignSingle(privKeyBytes []byte, message [32]byte) (signature []byte, commitment EthAddress, nonce *big.Int, challenge []byte)
- type JacobianPoint
- type Point
Constants ¶
View Source
const ADDRESS_MASK = "000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
Variables ¶
This section is empty.
Functions ¶
func AggregateSignatures ¶
func ComputeNonce ¶
func ComputeSignature ¶
func ComputeSignatureMulti ¶
func ComputeSignatureMulti(privKeys []*btcec.PrivateKey, message [32]byte, challenge []byte) (signatures [][]byte)
func NumberFromByte ¶
Types ¶
type JacobianPoint ¶
type JacobianPoint struct {
X, Y, Z *btcec.FieldVal
}
func AddAffinePoint ¶
func AddAffinePoint(self *JacobianPoint, p *Point) *JacobianPoint
addAffinePoint performs point addition in Jacobian coordinates on the secp256k1 curve
func (*JacobianPoint) AddAffinePoint ¶
func (jp *JacobianPoint) AddAffinePoint(affinePoint *btcec.PublicKey)
Click to show internal directories.
Click to hide internal directories.