naive: fix signature parsing
::
++ sig
|= params=(map @t json)
- ^- (unit @)
+ ^- (unit @ux)
?~ sig=(~(get by params) 'sig') ~
- (so:dejs-soft:format u.sig)
+ =; ans=(unit (unit @ux))
+ ?~(ans ~ u.ans)
+ %. u.sig
+ =, dejs-soft:format
+ (cu to-hex so)
::
++ from
|= params=(map @t json)
^- [(unit cage) response:rpc]
?. (params:validate params)
[~ ~(params error id)]
- =/ sig=(unit @) (sig:from-json params)
+ =/ sig=(unit @ux) (sig:from-json params)
=/ from=(unit [@p proxy:naive]) (from:from-json params)
=/ raw=(unit octs) (raw:from-json params)
=/ data=(unit @p) (ship:data:from-json params)
^- [(unit cage) response:rpc]
?. (params:validate params)
[~ ~(params error id)]
- =/ sig=(unit @) (sig:from-json params)
+ =/ sig=(unit @ux) (sig:from-json params)
=/ from=(unit [@p proxy:naive]) (from:from-json params)
=/ raw=(unit octs) (raw:from-json params)
=/ data=(unit @ux) (address:data:from-json params)
^- [(unit cage) response:rpc]
?. (params:validate params)
[~ ~(params error id)]
- =/ sig=(unit @) (sig:from-json params)
+ =/ sig=(unit @ux) (sig:from-json params)
=/ from=(unit [ship @t]) (from:from-json params)
=/ raw=(unit octs) (raw:from-json params)
=/ data=(unit [@ux ?]) (address-transfer:data:from-json params)
^- [(unit cage) response:rpc]
?. (params:validate params)
[~ ~(params error id)]
- =/ sig=(unit @) (sig:from-json params)
+ =/ sig=(unit @ux) (sig:from-json params)
=/ from=(unit [ship @t]) (from:from-json params)
=/ raw=(unit octs) (raw:from-json params)
=/ data=(unit [encrypt=@ auth=@ crypto-suite=@ breach=?])
^- [(unit cage) response:rpc]
?. (params:validate params)
[~ ~(params error id)]
- =/ sig=(unit @) (sig:from-json params)
+ =/ sig=(unit @ux) (sig:from-json params)
=/ from=(unit [@p proxy:naive]) (from:from-json params)
=/ raw=(unit octs) (raw:from-json params)
=/ data=(unit [@p @ux]) (address-ship:data:from-json params)
