Skip to content

Commit

Permalink
remove duplicate test vectors in mina signer
Browse files Browse the repository at this point in the history
  • Loading branch information
hattyhattington17 committed Dec 16, 2024
1 parent 79f1fd1 commit 92dd1a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 57 deletions.
4 changes: 3 additions & 1 deletion src/mina-signer/src/sign-legacy.unit-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ let networks: NetworkId[] = ['devnet', 'testnet', 'mainnet'];

for (let network of networks) {
let i = 0;
let reference = signatures[NetworkId.toString(network)];
let reference = NetworkId.toString(network) === 'testnet'
? signatures['devnet']
: signatures[NetworkId.toString(network)];

for (let payment of payments) {
let signature = signPayment(payment, privateKey, network);
Expand Down
56 changes: 0 additions & 56 deletions src/mina-signer/src/test-vectors/legacySignatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,62 +147,6 @@ let signatures: { [k: string]: { field: string; scalar: string }[] } = {
'21219917886278462345652813021708727397787183083051040637716760620250038837684',
},
],
testnet: [
{
field:
'3925887987173883783388058255268083382298769764463609405200521482763932632383',
scalar:
'445615701481226398197189554290689546503290167815530435382795701939759548136',
},
{
field:
'11838925242791061185900891854974280922359055483441419242429642295065318643984',
scalar:
'5057044820006008308046028014628135487302791372585541488835641418654652928805',
},
{
field:
'13570419670106759824217358880396743605262660069048455950202130815805728575057',
scalar:
'2256128221267944805514947515637443480133552241968312777663034361688965989223',
},
{
field:
'18603328765572408555868399359399411973012220541556204196884026585115374044583',
scalar:
'17076342019359061119005549736934690084415105419939473687106079907606137611470',
},
{
field:
'1786373894608285187089973929748850875336413409295396991315429715474432640801',
scalar:
'10435258496141097615588833319454104720521911644724923418749752896069542389757',
},
{
field:
'11710586766419351067338319607483640291676872446372400739329190129174446858072',
scalar:
'21663533922934564101122062377096487451020504743791218020915919810997397884837',
},
{
field:
'11583775536286847540414661987230057163492736306749717851628536966882998258109',
scalar:
'14787360096063782022566783796923142259879388947509616216546009448340181956495',
},
{
field:
'24809097509137086694730479515383937245108109696879845335879579016397403384488',
scalar:
'23723859937408726087117568974923795978435877847592289069941156359435022279156',
},
{
field:
'23803497755408154859878117448681790665144834176143832235351783889976460433296',
scalar:
'21219917886278462345652813021708727397787183083051040637716760620250038837684',
},
],
mainnet: [
{
field:
Expand Down

0 comments on commit 92dd1a3

Please sign in to comment.