mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
Add solidity interface comment
This commit is contained in:
parent
33783cb2d6
commit
3671017ec8
1 changed files with 26 additions and 0 deletions
|
|
@ -1,5 +1,31 @@
|
||||||
package vm
|
package vm
|
||||||
|
|
||||||
|
// Solidity interfaces for precompiles
|
||||||
|
//
|
||||||
|
// enum NetworkId {
|
||||||
|
// MAINNET,
|
||||||
|
// TESTNET,
|
||||||
|
// NULLNET
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// interface IHasher {
|
||||||
|
// function poseidonHash(
|
||||||
|
// NetworkId networkId,
|
||||||
|
// bytes32[] memory fields
|
||||||
|
// ) external view returns (bytes32);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// interface ISigner {
|
||||||
|
// function verify(
|
||||||
|
// NetworkId networkId,
|
||||||
|
// bytes32 pubKeyX,
|
||||||
|
// bytes32 pubKeyY,
|
||||||
|
// bytes32 signatureRX,
|
||||||
|
// bytes32 signatureS,
|
||||||
|
// bytes32[] calldata fields
|
||||||
|
// ) external view returns (bool);
|
||||||
|
// }
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo LDFLAGS: mina/target/release/libmina.a -ldl
|
#cgo LDFLAGS: mina/target/release/libmina.a -ldl
|
||||||
#include "../../mina/target/mina.h"
|
#include "../../mina/target/mina.h"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue