Documentation ¶
Index ¶
- Constants
- func BigToBytes(big *FP256BN.BIG) []byte
- func DiffHash(a Hash, b Hash) error
- func Ecp2ToBytes(ecp2 *FP256BN.ECP2) []byte
- func EcpToBytes(ecp *FP256BN.ECP) []byte
- func G1() *FP256BN.ECP
- func G2() *FP256BN.ECP2
- func InitRandom() *core.RAND
- func P() *FP256BN.BIG
- func RandomBig(rng *core.RAND) *FP256BN.BIG
- func RandomBytes(rng *core.RAND, size int) []byte
- func RandomECP(rng *core.RAND) *FP256BN.ECP
- type Hash
- func (baseHash *Hash) HashToECP() (*FP256BN.ECP, uint32, error)
- func (h *Hash) SumToBIG() *FP256BN.BIG
- func (h *Hash) SumToBytes() []byte
- func (h *Hash) WriteBIG(n ...*FP256BN.BIG)
- func (h *Hash) WriteBytes(n ...[]byte)
- func (h *Hash) WriteECP(n ...*FP256BN.ECP)
- func (h *Hash) WriteECP2(n ...*FP256BN.ECP2)
Constants ¶
View Source
const SEED_SIZE = 100
*
- Random seed size
Variables ¶
This section is empty.
Functions ¶
func BigToBytes ¶
func Ecp2ToBytes ¶
func EcpToBytes ¶
Types ¶
type Hash ¶ added in v0.0.2
type Hash struct {
B [][]byte
}
func (*Hash) SumToBytes ¶ added in v0.0.2
func (*Hash) WriteBytes ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.