-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathAddress.h
More file actions
36 lines (24 loc) · 769 Bytes
/
Address.h
File metadata and controls
36 lines (24 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Aleth: Ethereum C++ client, tools and libraries.
// Copyright 2013-2019 Aleth Authors.
// Licensed under the GNU General Public License, Version 3.
/// @file
/// This file defines Address alias for FixedHash of 160 bits and some
/// special Address constants.
#pragma once
#include "FixedHash.h"
namespace dev
{
/// An Ethereum address: 20 bytes.
/// @NOTE This is not endian-specific; it's just a bunch of bytes.
using Address = h160;
/// A vector of Ethereum addresses.
using Addresses = h160s;
/// A hash set of Ethereum addresses.
using AddressHash = std::unordered_set<h160>;
/// The zero address.
extern Address const ZeroAddress;
/// The last address.
extern Address const MaxAddress;
/// The SYSTEM address.
extern Address const SystemAddress;
}