Skip to content

Commit

Permalink
[cgo] refs fibercrypto#105 Repair error in SKY_cipher_PubKey_Hex an…
Browse files Browse the repository at this point in the history
…d `SKY_cipher_BitcoinAddress_String`
  • Loading branch information
Maykel Arias Torres committed Sep 21, 2019
1 parent 8b24ee0 commit 83af90e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/cgo/cipher.bitcoin.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ func SKY_cipher_BitcoinAddress_Verify(_addr *C.cipher__BitcoinAddress, _key *C.c
}

//export SKY_cipher_BitcoinAddress_String
func SKY_cipher_BitcoinAddress_String(_addr *C.cipher__BitcoinAddress, _arg1 *string) {
func SKY_cipher_BitcoinAddress_String(_addr *C.cipher__BitcoinAddress, _arg1 *C.GoString_) {
addr := (*cipher.BitcoinAddress)(unsafe.Pointer(_addr))
*_arg1 = addr.String()
__arg1 := addr.String()
copyString(__arg1,_arg1)
}

//export SKY_cipher_BitcoinAddress_Checksum
Expand Down
5 changes: 3 additions & 2 deletions lib/cgo/cipher.crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ func SKY_cipher_PubKey_Verify(_pk *C.cipher__PubKey) (____error_code uint32) {
}

//export SKY_cipher_PubKey_Hex
func SKY_cipher_PubKey_Hex(_pk *C.cipher__PubKey, _arg1 *string) (____error_code uint32) {
func SKY_cipher_PubKey_Hex(_pk *C.cipher__PubKey, _arg1 *C.GoString_) (____error_code uint32) {
pk := (*cipher.PubKey)(unsafe.Pointer(_pk))
*_arg1 = pk.Hex()
__arg1 := pk.Hex()
copyString(__arg1,_arg1)
return SKY_OK
}

Expand Down

0 comments on commit 83af90e

Please sign in to comment.