mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 11:26:44 +01:00
Add methods for ZKInputs IntermStates generation
- Add L1Tx TxCompressedData method - Add PoolL2Tx TxCompressedDataV2 method - Update ProcessTxs logic - Add ZKInputs Intermediate States & Fee parameters calculation
This commit is contained in:
@@ -52,3 +52,8 @@ func TokenIDFromBytes(b []byte) (TokenID, error) {
|
||||
tid := binary.BigEndian.Uint32(b[:4])
|
||||
return TokenID(tid), nil
|
||||
}
|
||||
|
||||
// TokenIDFromBigInt returns a TokenID with the value of the given *big.Int
|
||||
func TokenIDFromBigInt(b *big.Int) TokenID {
|
||||
return TokenID(b.Int64())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user