@@ -266,22 +266,22 @@ class Signature extends CircuitValue {
266266 let publicKey = PublicKey . fromPrivateKey ( privKey ) . toGroup ( ) ;
267267 let d = privKey . s ;
268268
269- // we chose an arbitrary prefix for the signature, and it happened to be 'testnet'
269+ // we chose an arbitrary prefix for the signature
270270 // there's no consequences in practice and the signatures can be used with any network
271271 // if there needs to be a custom nonce, include it in the message itself
272272 let kPrime = Scalar . from (
273273 deriveNonce (
274274 { fields : msg . map ( ( f ) => f . toBigInt ( ) ) } ,
275275 { x : publicKey . x . toBigInt ( ) , y : publicKey . y . toBigInt ( ) } ,
276276 d . toBigInt ( ) ,
277- 'testnet '
277+ 'devnet '
278278 )
279279 ) ;
280280
281281 let { x : r , y : ry } = Group . generator . scale ( kPrime ) ;
282282 let k = ry . isOdd ( ) . toBoolean ( ) ? kPrime . neg ( ) : kPrime ;
283283 let h = hashWithPrefix (
284- signaturePrefix ( 'testnet ' ) ,
284+ signaturePrefix ( 'devnet ' ) ,
285285 msg . concat ( [ publicKey . x , publicKey . y , r ] )
286286 ) ;
287287 let e = Scalar . fromField ( h ) ;
@@ -296,11 +296,11 @@ class Signature extends CircuitValue {
296296 verify ( publicKey : PublicKey , msg : Field [ ] ) : Bool {
297297 let point = publicKey . toGroup ( ) ;
298298
299- // we chose an arbitrary prefix for the signature, and it happened to be 'testnet'
299+ // we chose an arbitrary prefix for the signature
300300 // there's no consequences in practice and the signatures can be used with any network
301301 // if there needs to be a custom nonce, include it in the message itself
302302 let h = hashWithPrefix (
303- signaturePrefix ( 'testnet ' ) ,
303+ signaturePrefix ( 'devnet ' ) ,
304304 msg . concat ( [ point . x , point . y , this . r ] )
305305 ) ;
306306
0 commit comments