updates to README and Go lib

This commit is contained in:
J. Ayo Akinyele 2019-10-17 19:13:12 -04:00
parent 061219fc5d
commit 4246cee4e6
2 changed files with 9 additions and 1 deletions

View File

@ -15,8 +15,10 @@ Active development of libbolt is ongoing at [Bolt Labs, Inc](https://github.com/
# Dependencies
* secp256k1
* sodiumoxide
* ff
* pairing
* serde
* sha2
Note that the above rust dependencies will be compiled and installed as a result of running the `make` command.

View File

@ -225,6 +225,12 @@ type CustClose struct {
Signature Signature `json:"signature"`
}
type ZkChannelParams struct {
ChannelToken ChannelToken `json:"chantoken"`
Commitment Commitment `json:"commitment"`
CommitmentProof CommitmentProof `json:"commproof"`
}
func BidirectionalChannelSetup(name string, channelSupport bool) (ChannelState, error) {
resp := C.GoString(C.ffishim_bidirectional_channel_setup(C.CString(name), C.uint(btoi(channelSupport))))
r, err := processCResponse(resp)