Merge pull request #2 from fluencelabs/op-b58

Added op b58 builtins
This commit is contained in:
Dmitry Kurinskiy 2021-05-27 16:12:30 +03:00 committed by GitHub
commit e5be5d2e98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,10 @@ data Contact:
service Op("op"):
identity()
string_to_b58(s: string) -> string
string_from_b58(b: string) -> string
bytes_to_b58(bs: []u8) -> string
bytes_from_b58(b: string) -> []u8
service Peer("peer"):
-- Checks if there is a direct connection to the peer identified by a given PeerId
@ -92,7 +96,7 @@ service Peer("peer"):
service Kademlia("kad"):
-- Instructs node to return the locally-known nodes
-- in the Kademlia neighborhood for a given key
neighborhood(peer: PeerId) -> []PeerId
neighborhood(key: PeerId, already_hashed: bool) -> []PeerId
service Srv("srv"):
-- Used to create a service on a certain node