AutoSeededRandomPool prng;
ECDSA<ECP, SHA1>:
rivateKey privateKey;
privateKey.Initialize( prng, ASN1::secp160r1() );
bool result = privateKey.Validate( prng, 3 );
if( !result ) { ... }
privateKey.MakePublicKey( publicKey );
bool result = publicKey.Validate( prng, 3 );
if( !result ) { ... }
const ECP:
oint& q = publicKey.GetPublicElement()
const Integer& qx = q.x;
const Integer& qy = q.y;
AutoSeededRandomPool prng;
ECDSA<ECP, SHA1>::Signer signer;
signer.AccessKey().Initialize( prng, ASN1::secp160r1() );
bool result = signer.AccessKey().Validate( prng, 3 );
if( !result ) { ... }
ECDSA<ECP, SHA1>:
rivateKey privateKey
...
ECDSA<ECP, SHA1>::Signer signer(privateKey);
bool result = signer.AccessKey().Validate( prng, 3 );
if( !result ) { ... }
Copyright © 2026, NextGenUpdate.
All Rights Reserved.