BLS256

Kind: global class
this: {BLS256}

new BLS256()

Creates an instance of BLS256

BLS256.bytestostring() ⇒

Convert byte array to string

Kind: static method of BLS256
Returns: string
this: {BLS192}
Parameter: b byte array

BLS256.stringtobytes() ⇒

Convert string to byte array

Kind: static method of BLS256
Returns: byte array
this: {BLS192}
Parameter: s string

BLS256.bls_hashit() ⇒

hash a message to an ECP point, using SHA3

Kind: static method of BLS256
Returns: ECP point
this: {BLS192}
Parameter: m message to be hashedstring

BLS256.KeyPairGenerate() ⇒

Generate key pair

Kind: static method of BLS256
Returns: Error code
this: {BLS192}
Parameter: rng Cryptographically Secure Random Number Generator
Parameter: S Private key
Parameter: W Public key

BLS256.sign() ⇒

Sign message

Kind: static method of BLS256
Returns: Error code
this: {BLS192}
Parameter: SIG Singature
Parameter: m Message to sign
Parameter: S Private key

BLS256.verify() ⇒

Verify message

Kind: static method of BLS256
Returns: Error code
this: {BLS192}
Parameter: SIG Signature
Parameter: m Message to sign
Parameter: W Public key

BLS256.add_G1() ⇒

R=R1+R2 in group G1

Kind: static method of BLS256
Returns: Error code
this: {BLS192}
Parameter: R1 G1 Point
Parameter: R2 G1 Point
Parameter: R G1 Point

BLS256.add_G2() ⇒

W=W1+W2 in group G2

Kind: static method of BLS256
Returns: Error code
this: {BLS192}
Parameter: W1 G2 Point
Parameter: W2 G2 Point
Parameter: R G2 Point