BLS192

Kind: global class
this: {BLS192}

new BLS192()

Creates an instance of BLS192

BLS192.bytestostring() ⇒

Convert byte array to string

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

BLS192.stringtobytes() ⇒

Convert string to byte array

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

BLS192.bls_hashit() ⇒

hash a message to an ECP point, using SHA3

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

BLS192.KeyPairGenerate() ⇒

Generate key pair

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

BLS192.sign() ⇒

Sign message

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

BLS192.verify() ⇒

Verify message

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

BLS192.add_G1() ⇒

R=R1+R2 in group G1

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

BLS192.add_G2() ⇒

W=W1+W2 in group G2

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