@@ -21,7 +21,7 @@ public Signature Sign(PrivateKey privateKey, in ValueHash256 message)
2121 InvalidPrivateKey ( ) ;
2222 }
2323
24- byte [ ] signatureBytes = SpanSecP256k1 . SignCompact ( message . Bytes , privateKey . KeyBytes , out int recoveryId ) ;
24+ byte [ ] signatureBytes = SecP256k1 . SignCompact ( message . Bytes , privateKey . KeyBytes , out int recoveryId ) ;
2525 Signature signature = new ( signatureBytes , recoveryId ) ;
2626
2727#if DEBUG
@@ -40,7 +40,7 @@ public Signature Sign(PrivateKey privateKey, in ValueHash256 message)
4040 public PublicKey ? RecoverPublicKey ( Signature signature , in ValueHash256 message )
4141 {
4242 Span < byte > publicKey = stackalloc byte [ 65 ] ;
43- bool success = SpanSecP256k1 . RecoverKeyFromCompact ( publicKey , message . Bytes , signature . Bytes , signature . RecoveryId , false ) ;
43+ bool success = SecP256k1 . RecoverKeyFromCompact ( publicKey , message . Bytes , signature . Bytes , signature . RecoveryId , false ) ;
4444 if ( ! success )
4545 {
4646 return null ;
@@ -52,7 +52,7 @@ public Signature Sign(PrivateKey privateKey, in ValueHash256 message)
5252 public CompressedPublicKey ? RecoverCompressedPublicKey ( Signature signature , in ValueHash256 message )
5353 {
5454 Span < byte > publicKey = stackalloc byte [ 33 ] ;
55- bool success = SpanSecP256k1 . RecoverKeyFromCompact ( publicKey , message . Bytes , signature . Bytes , signature . RecoveryId , true ) ;
55+ bool success = SecP256k1 . RecoverKeyFromCompact ( publicKey , message . Bytes , signature . Bytes , signature . RecoveryId , true ) ;
5656 if ( ! success )
5757 {
5858 return null ;
0 commit comments