mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Add CollatorNode and make validators request blocks from it
This commit is contained in:
parent
996c23e506
commit
53270a00e6
25 changed files with 577 additions and 33 deletions
|
@ -253,6 +253,10 @@ class PublicKey {
|
|||
td::BufferSlice export_as_slice() const;
|
||||
static td::Result<PublicKey> import(td::Slice s);
|
||||
|
||||
bool is_ed25519() const {
|
||||
return pub_key_.get_offset() == pub_key_.offset<pubkeys::Ed25519>();
|
||||
}
|
||||
|
||||
pubkeys::Ed25519 ed25519_value() const {
|
||||
CHECK(pub_key_.get_offset() == pub_key_.offset<pubkeys::Ed25519>());
|
||||
return pub_key_.get<pubkeys::Ed25519>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue