updates to README and Go lib
This commit is contained in:
parent
061219fc5d
commit
4246cee4e6
|
@ -15,8 +15,10 @@ Active development of libbolt is ongoing at [Bolt Labs, Inc](https://github.com/
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
* secp256k1
|
* secp256k1
|
||||||
* sodiumoxide
|
* ff
|
||||||
* pairing
|
* pairing
|
||||||
|
* serde
|
||||||
|
* sha2
|
||||||
|
|
||||||
Note that the above rust dependencies will be compiled and installed as a result of running the `make` command.
|
Note that the above rust dependencies will be compiled and installed as a result of running the `make` command.
|
||||||
|
|
||||||
|
|
|
@ -225,6 +225,12 @@ type CustClose struct {
|
||||||
Signature Signature `json:"signature"`
|
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) {
|
func BidirectionalChannelSetup(name string, channelSupport bool) (ChannelState, error) {
|
||||||
resp := C.GoString(C.ffishim_bidirectional_channel_setup(C.CString(name), C.uint(btoi(channelSupport))))
|
resp := C.GoString(C.ffishim_bidirectional_channel_setup(C.CString(name), C.uint(btoi(channelSupport))))
|
||||||
r, err := processCResponse(resp)
|
r, err := processCResponse(resp)
|
||||||
|
|
Loading…
Reference in New Issue