Documentation ¶
Index ¶
- Variables
- func BytesToPoint(hash [32]byte) (*bn254.G1Affine, error)
- func CurveRHS(x *fp.Element) *fp.Element
- func DecodePointFromRPBSFormat(encodedPointInRPBSFormat string) (*bn254.G1Affine, error)
- func EncodePoint(point *bn254.G1Affine) []byte
- func NegateBigInt(input *big.Int) *big.Int
- func Verify(builderBid builderTypes.BuilderBlockBid) (bool, error)
- func VerifySignature(y1 *bn254.G1Affine, info string, sig *Signature) bool
- func VerifySignatureWithStringInput(rpbsServicePublicKey string, info string, sig *rpbsTypes.EncodedRPBSSignature) (bool, error)
- type Complex
- type Signature
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FIELD_MODULUS = fp.Modulus() CURVE_ORDER = fr.Modulus() )
Functions ¶
func DecodePointFromRPBSFormat ¶
encoded point in RPBS format (that was formed by JS code) is represented as a hex string: len(hex(X)) + "04" + hex(X) + hex(Y)
func EncodePoint ¶
we need encoding a point in this format for compatibility reasons since it is used in JS library elliptic.js '04' + hex(x) + hex(y)
func Verify ¶
func Verify(builderBid builderTypes.BuilderBlockBid) (bool, error)
Types ¶
type Signature ¶
type Signature struct {
// contains filtered or unexported fields
}
func DecodeRPBSSignature ¶
func DecodeRPBSSignature(sig *rpbsTypes.EncodedRPBSSignature) (*Signature, error)
Click to show internal directories.
Click to hide internal directories.