pksig_bls04¶
:Boneh-Lynn-Shacham Identity Based Signature
From: “D. Boneh, B. Lynn, H. Shacham Short Signatures from the Weil Pairing”
Published in: Journal of Cryptology 2004
Available from: http://
Notes: This is the IBE (2-level HIBE) implementation of the HIBE scheme BB_2.
- type: signature (identity-based)
- setting: bilinear groups (asymmetric)
Authors: |
|
---|---|
Date: | 1/2011 |
-
class
pksig_bls04.
BLS01
(groupObj)[source]¶ Bases:
charm.toolbox.IBSig.IBSig
>>> from charm.toolbox.pairinggroup import PairingGroup >>> group = PairingGroup('MNT224') >>> messages = { 'a':"hello world!!!" , 'b':"test message" } >>> ib = BLS01(group) >>> (public_key, secret_key) = ib.keygen() >>> signature = ib.sign(secret_key['x'], messages) >>> ib.verify(public_key, signature, messages) True