-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add modules
Operation_hash
and Kt1_address
- Loading branch information
Showing
2 changed files
with
73 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,35 @@ | ||
(** Tezos common identifiers. *) | ||
|
||
module Block_hash : sig | ||
val prefix : string | ||
val size : int | ||
val hash_string : string -> string | ||
val encode : string -> string | ||
val decode : string -> string | ||
val encode : string -> Raw.base58 | ||
val decode : Raw.base58 -> string | ||
end | ||
|
||
module Chain_id : sig | ||
val prefix : string | ||
val size : int | ||
val hash_string : string -> string | ||
val encode : string -> string | ||
val decode : string -> string | ||
val of_base58_block_hash : string -> string | ||
val encode : string -> Raw.base58 | ||
val decode : Raw.base58 -> string | ||
val of_base58_block_hash : Raw.base58 -> Raw.base58 | ||
end | ||
|
||
module Operation_hash : sig | ||
val prefix : string | ||
val size : int | ||
val hash_string : string -> string | ||
val encode : string -> Raw.base58 | ||
val decode : Raw.base58 -> string | ||
end | ||
|
||
module Kt1_address : sig | ||
val prefix : string | ||
val size : int | ||
val hash_string : string -> string | ||
val encode : string -> Raw.base58 | ||
val decode : Raw.base58 -> string | ||
val of_base58_operation_hash : ?index:int32 -> Raw.base58 -> Raw.base58 | ||
end |