Home
last modified time | relevance | path

Searched refs:bytes32 (Results 1 – 25 of 349) sorted by relevance

12345678910>>...14

/dports/lang/solidity/solidity_0.8.11/test/libsolidity/semanticTests/abiEncoderV2/cleanup/
H A Dbytesx.sol7 function f1(bytes32 a) external view returns (bytes32) {
15 function f2(bytes32 a) external view returns (bytes32) {
23 function f4(bytes32 a) external view returns (bytes32) {
31 function f8(bytes32 a) external view returns (bytes32) {
39 function f16(bytes32 a) external view returns (bytes32) {
48 // f1(bytes32): left(0) -> left(0)
50 // f1(bytes32): left(1) -> left(1)
60 // f1(bytes32): -1 -> left(0xFF)
62 // f2(bytes32): left(0) -> left(0)
64 // f2(bytes32): left(1) -> left(1)
[all …]
/dports/net-p2p/go-ethereum/go-ethereum-1.10.14/vendor/github.com/status-im/keycard-go/vendor/github.com/ethereum/go-ethereum/contracts/ens/contract/
H A DAbstractENS.sol4 function owner(bytes32 node) constant returns(address);
5 function resolver(bytes32 node) constant returns(address);
6 function ttl(bytes32 node) constant returns(uint64);
7 function setOwner(bytes32 node, address owner);
8 function setSubnodeOwner(bytes32 node, bytes32 label, address owner);
9 function setResolver(bytes32 node, address resolver);
10 function setTTL(bytes32 node, uint64 ttl);
13 event NewOwner(bytes32 indexed node, bytes32 indexed label, address owner);
16 event Transfer(bytes32 indexed node, address owner);
19 event NewResolver(bytes32 indexed node, address resolver);
[all …]
H A DPublicResolver.sol19 event ContentChanged(bytes32 indexed node, bytes32 hash);
22 event PubkeyChanged(bytes32 indexed node, bytes32 x, bytes32 y);
26 bytes32 x;
27 bytes32 y;
32 bytes32 content;
40 mapping(bytes32=>Record) records;
42 modifier only_owner(bytes32 node) {
97 function content(bytes32 node) constant returns (bytes32 ret) {
109 function setContent(bytes32 node, bytes32 hash) only_owner(node) {
176 function pubkey(bytes32 node) constant returns (bytes32 x, bytes32 y) {
[all …]
H A DENS.sol15 mapping(bytes32=>Record) records;
18 modifier only_owner(bytes32 node) {
33 function owner(bytes32 node) constant returns (address) {
40 function resolver(bytes32 node) constant returns (address) {
47 function ttl(bytes32 node) constant returns (uint64) {
57 function setOwner(bytes32 node, address owner) only_owner(node) {
69 function setSubnodeOwner(bytes32 node, bytes32 label, address owner) only_owner(node) {
80 function setResolver(bytes32 node, address resolver) only_owner(node) {
90 function setTTL(bytes32 node, uint64 ttl) only_owner(node) {
/dports/lang/solidity/solidity_0.8.11/test/libsolidity/smtCheckerTests/crypto/
H A Dcrypto_functions_same_input_same_output.sol4 bytes32 k0 = keccak256(b0);
5 bytes32 k1 = keccak256(b1);
10 bytes32 s0 = sha256(b0);
11 bytes32 s1 = sha256(b1);
16 bytes32 r0 = ripemd160(b0);
17 bytes32 r1 = ripemd160(b1);
20 function e(bytes32 h0, uint8 v0, bytes32 r0, bytes32 s0) public pure {
21 (bytes32 h1, uint8 v1, bytes32 r1, bytes32 s1) = (h0, v0, r0, s0);
H A Dcrypto_functions_same_input_over_state_same_output_fail.sol3 bytes32 h;
5 bytes32 r;
6 bytes32 s;
8 bytes32 kec;
9 bytes32 sha;
10 bytes32 rip;
13 constructor(bytes memory _data, bytes32 _h, uint8 _v, bytes32 _r, bytes32 _s) {
26 function set(bytes memory _data, bytes32 _h, uint8 _v, bytes32 _r, bytes32 _s) public {
35 bytes32 _kec = keccak256(data);
36 bytes32 _sha = sha256(data);
[all …]
H A Dcrypto_functions_fail.sol3 bytes32 k0 = keccak256(b0);
4 bytes32 k1 = keccak256(b1);
8 bytes32 s0 = sha256(b0);
9 bytes32 s1 = sha256(b1);
14 bytes32 r0 = ripemd160(b0);
15 bytes32 r1 = ripemd160(b1);
19 …function e(bytes32 h0, uint8 v0, bytes32 r0, bytes32 s0, bytes32 h1, uint8 v1, bytes32 r1, bytes32
H A Dcrypto_functions_same_input_over_state_same_output.sol3 bytes32 h;
5 bytes32 r;
6 bytes32 s;
8 bytes32 kec;
9 bytes32 sha;
10 bytes32 rip;
13 constructor(bytes memory _data, bytes32 _h, uint8 _v, bytes32 _r, bytes32 _s) {
27 bytes32 _kec = keccak256(data);
28 bytes32 _sha = sha256(data);
29 bytes32 _rip = ripemd160(data);
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/cpp-ethereum/evmc/bindings/go/evmc/
H A Dhost.c37 evmc_bytes32 bytes32; in go_exported_functions_type_checks() local
59 bytes32 = get_storage_fn(context, address, &bytes32); in go_exported_functions_type_checks()
60 bytes32 = getStorage(context, address, &bytes32); in go_exported_functions_type_checks()
63 storage_status = set_storage_fn(context, address, &bytes32, &bytes32); in go_exported_functions_type_checks()
64 storage_status = setStorage(context, address, &bytes32, &bytes32); in go_exported_functions_type_checks()
75 bytes32 = get_code_hash_fn(context, address); in go_exported_functions_type_checks()
76 bytes32 = getCodeHash(context, address); in go_exported_functions_type_checks()
95 bytes32 = get_block_hash_fn(context, number); in go_exported_functions_type_checks()
96 bytes32 = getBlockHash(context, number); in go_exported_functions_type_checks()
99 emit_log_fn(context, address, data, size, &bytes32, size); in go_exported_functions_type_checks()
[all …]
/dports/lang/solidity/solidity_0.8.11/test/libsolidity/syntaxTests/viewPureChecker/
H A Dbuiltin_functions_restrict_warning.sol3 bytes32 x = keccak256("abc");
4 bytes32 y = sha256("abc");
5 … address z = ecrecover(bytes32(uint256(1)), uint8(2), bytes32(uint256(3)), bytes32(uint256(4)));
11 bytes32 x = keccak256("abc");
12 bytes32 y = sha256("abc");
13 … address z = ecrecover(bytes32(uint256(1)), uint8(2), bytes32(uint256(3)), bytes32(uint256(4)));
/dports/lang/solidity/solidity_0.8.11/test/libsolidity/ABIJson/
H A Dinherited.sol3 event baseEvent(bytes32 indexed evtArgBase);
6 function derivedFunction(bytes32 p) public returns (bytes32 i) { return p; }
18 // "internalType": "bytes32",
20 // "type": "bytes32"
58 // "internalType": "bytes32",
60 // "type": "bytes32"
105 // "internalType": "bytes32",
107 // "type": "bytes32"
114 // "internalType": "bytes32",
116 // "type": "bytes32"
/dports/lang/solidity/solidity_0.8.11/test/libsolidity/syntaxTests/string/
H A Dunicode_escape_literals.sol2 function oneByteUTF8() public pure returns (bytes32) {
3 bytes32 usdollar = "aaa\u0024aaa";
7 function twoBytesUTF8() public pure returns (bytes32) {
8 bytes32 cent = "aaa\u00A2aaa";
12 function threeBytesUTF8() public pure returns (bytes32) {
13 bytes32 eur = "aaa\u20ACaaa";
17 function combined() public pure returns (bytes32) {
18 bytes32 res = "\u0024\u00A2\u20AC";
/dports/lang/solidity/solidity_0.8.11/test/libsolidity/syntaxTests/parsing/
H A Dmultiple_functions_natspec_documentation.sol4 function functionName1(bytes32 input) public returns (bytes32 out) {}
6 function functionName2(bytes32 input) public returns (bytes32 out) {}
8 function functionName3(bytes32 input) public returns (bytes32 out) {}
10 function functionName4(bytes32 input) public returns (bytes32 out) {}
/dports/lang/solidity/solidity_0.8.11/test/libsolidity/semanticTests/array/
H A Dbytes_to_fixed_bytes_too_long.sol4 function fromMemory(bytes memory m) public returns (bytes32) {
5 return bytes32(m);
7 function fromCalldata(bytes calldata c) external returns (bytes32) {
8 return bytes32(c);
10 function fromStorage() external returns (bytes32) {
11 return bytes32(s);
13 function fromSlice(bytes calldata c) external returns (bytes32) {
14 return bytes32(c[0:33]);
/dports/lang/solidity/solidity_0.8.11/test/evmc/
H A Devmc.hpp62 struct bytes32 : evmc_bytes32 struct
113 using uint256be = bytes32;
202 inline constexpr bool operator==(const bytes32& a, const bytes32& b) noexcept in operator ==()
211 inline constexpr bool operator!=(const bytes32& a, const bytes32& b) noexcept in operator !=()
217 inline constexpr bool operator<(const bytes32& a, const bytes32& b) noexcept in operator <()
229 inline constexpr bool operator>(const bytes32& a, const bytes32& b) noexcept in operator >()
235 inline constexpr bool operator<=(const bytes32& a, const bytes32& b) noexcept in operator <=()
241 inline constexpr bool operator>=(const bytes32& a, const bytes32& b) noexcept in operator >=()
260 return a == bytes32{}; in is_zero()
287 constexpr bytes32 from_hex<bytes32>(const char* s) noexcept in from_hex()
[all …]
H A Dmocked_host.hpp22 bytes32 value;
54 bytes32 codehash;
60 std::map<bytes32, storage_value> storage;
85 std::vector<bytes32> topics;
117 bytes32 block_hash = {};
169 bytes32 get_storage(const address& addr, const bytes32& key) const noexcept override in get_storage()
185 const bytes32& key, in set_storage()
186 const bytes32& value) noexcept override in set_storage()
241 bytes32 get_code_hash(const address& addr) const noexcept override in get_code_hash()
309 bytes32 get_block_hash(int64_t block_number) const noexcept override in get_block_hash()
[all …]
/dports/lang/solidity/solidity_0.8.11/test/libsolidity/semanticTests/events/
H A Devent.sol2 event Deposit(address indexed _from, bytes32 indexed _id, uint _value);
3 function deposit(bytes32 _id, bool _manually) public payable {
5 bytes32 s = 0x19dacbf83c5de6658e14cbf7bcae5c15eca2eedecf1c66fbca928e4d351bea0f;
20 // deposit(bytes32,bool), 18 wei: 0x1234, true ->
21 // ~ emit Deposit(address,bytes32,uint256): #0x1212121212121212121212121212120000000012, #0x1234, 0…
22 // deposit(bytes32,bool), 18 wei: 0x1234, false ->
23 // ~ emit Deposit(address,bytes32,uint256): #0x1212121212121212121212121212120000000012, #0x1234, 0…
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/cpp-ethereum/evmc/include/evmc/
H A Devmc.hpp35 struct bytes32 : evmc_bytes32 struct
47 using uint256be = bytes32;
105 constexpr bool operator==(const bytes32& a, const bytes32& b) noexcept in operator ==()
114 constexpr bool operator!=(const bytes32& a, const bytes32& b) noexcept in operator !=()
120 constexpr bool operator<(const bytes32& a, const bytes32& b) noexcept in operator <()
145 return a == bytes32{}; in is_zero()
250 constexpr bytes32 operator"" _bytes32() noexcept in operator ""_bytes32()
348 virtual bytes32 get_storage(const address& addr, const bytes32& key) const noexcept = 0;
416 bytes32 get_storage(const address& address, const bytes32& key) const noexcept final in get_storage()
482 const bytes32 topics[], in emit_log()
[all …]
H A Dmocked_host.hpp21 bytes32 value;
30 storage_value(const bytes32& _value, bool _dirty = false) noexcept // NOLINT in storage_value()
45 bytes32 codehash;
51 std::unordered_map<bytes32, storage_value> storage;
76 std::vector<bytes32> topics;
108 bytes32 block_hash = {};
159 bytes32 get_storage(const address& addr, const bytes32& key) const noexcept override in get_storage()
175 const bytes32& key, in set_storage()
231 bytes32 get_code_hash(const address& addr) const noexcept override in get_code_hash()
299 bytes32 get_block_hash(int64_t block_number) const noexcept override in get_block_hash()
[all …]
/dports/lang/solidity/solidity_0.8.11/test/libsolidity/semanticTests/ecrecover/
H A Decrecover.sol2 function a(bytes32 h, uint8 v, bytes32 r, bytes32 s) public returns (address addr) {
9 // a(bytes32,uint8,bytes32,bytes32):
H A Decrecover_abiV2.sol3 function a(bytes32 h, uint8 v, bytes32 r, bytes32 s) public returns (address addr) {
10 // a(bytes32,uint8,bytes32,bytes32):
/dports/lang/solidity/solidity_0.8.11/test/libsolidity/semanticTests/viaYul/
H A Dfunction_entry_checks.sol8 function i(bytes32 b) public returns (bytes32) {
12 function k(bytes32 b) public returns (bytes32) {
26 // i(bytes32), 1 ether: 2 -> FAILURE
27 // i(bytes32): 2 -> 0
29 // k(bytes32): 0x31 -> 0x00
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/cpp-ethereum/evmc/examples/
H A Dexample_host.cpp25 std::map<evmc::bytes32, evmc::bytes32> storage;
27 virtual evmc::bytes32 code_hash() const in code_hash()
30 evmc::bytes32 ret{}; in code_hash()
60 evmc::bytes32 get_storage(const evmc::address& addr, const evmc::bytes32& key) const in get_storage()
74 const evmc::bytes32& key, in set_storage()
75 const evmc::bytes32& value) noexcept final in set_storage()
100 evmc::bytes32 get_code_hash(const evmc::address& addr) const noexcept final in get_code_hash()
142 evmc::bytes32 get_block_hash(int64_t number) const noexcept final in get_block_hash()
154 const evmc::bytes32 topics[], in emit_log()
/dports/lang/solidity/solidity_0.8.11/test/libsolidity/semanticTests/array/copying/
H A Darray_copy_target_simple_2.sol3 bytes32[10] data2; // 1 per slot
7 returns (bytes32 a, bytes32 b, bytes32 c, bytes32 d, bytes32 e)
/dports/lang/solidity/solidity_0.8.11/test/libsolidity/smtCheckerTests/external_calls/
H A Dexternal_hash_known_code_pure.sol2 function hash(bytes32) external pure returns (bytes32) {
3 return bytes32(0);
9 bytes32 sig_1;
10 bytes32 sig_2;
17 function f1(bytes32 _msg) public {

12345678910>>...14