Add ops: noop, array, concat; change identity signature (#4)

This commit is contained in:
folex 2021-06-03 17:57:39 +03:00 committed by GitHub
parent 580cb7f596
commit 9207b76aeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,14 @@ data Contact:
addresses: []string
service Op("op"):
identity()
-- does nothing
noop()
-- takes any number of arguments and wraps them into a single array
array(a: string, b: string, c: string) -> []string
-- takes any number of arrays and flattens them by concatenating
concat(a: []string, b: []string, c: []string) -> []string
-- takes a single argument and returns it back
identity(s: ?string) -> ?string
string_to_b58(s: string) -> string
string_from_b58(b: string) -> string
bytes_to_b58(bs: []u8) -> string