mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 19:36:44 +01:00
mv of babyjub.PublicKey to babyjub.PublicKeyComp
Update usage of `*babyjub.PublicKey` to `babyjub.PublicKeyComp` - when the key is not defined, internally is used `babyjub.EmptyBJJComp`, which is a `[32]byte` of zeroes of type `babyjub.PublicKeyComp` - the API continues returning `nil` when the key is not defined
This commit is contained in:
@@ -130,7 +130,7 @@ func GenAccounts(totalAccounts, userAccounts int, tokens []common.Token, userAdd
|
||||
TokenID: tokens[i%len(tokens)].TokenID,
|
||||
EthAddr: addr,
|
||||
BatchNum: batches[i%len(batches)].BatchNum,
|
||||
PublicKey: pubK,
|
||||
PublicKey: pubK.Compress(),
|
||||
Balance: big.NewInt(int64(i * 10000000)), //nolint:gomnd
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user