Skip to content

Releases: nknorg/nkn-sdk-go

v1.2.8

19 May 21:31
Compare
Choose a tag to compare
  • Prevent multiclient panic if underlying client is closed
  • Close multiclient OnMessage and OnConnect channel when multiclient close

v1.2.7

15 May 11:10
Compare
Choose a tag to compare
  • Fix WalletFromJSON not returning error when password is wrong
  • Prevent duplicate scrypt computation in WalletFromJSON

v1.2.6

08 May 19:28
Compare
Choose a tag to compare
  • Upgrade to v2 wallet json format
  • Prevent panic when send dests is nil

v1.2.5

24 Apr 23:24
Compare
Choose a tag to compare
  • Remove ProgramHash() in Signer interface to fix gomobile build fail
  • Change interface to private to avoid error on gomobile android
  • Reduce reconnectChan len to 0 to avoid infinite reconnect loop

v1.2.4

20 Apr 09:52
Compare
Choose a tag to compare

Rewrite RPC module and add RPC functions to clients:

  1. Client and Multiclient now have all RPC functions available, including the ones that needs to send transactions. Clients will try to use connected nodes as RPC address first, and fallback to seed node if failed.
  2. Transaction related function now accepts transaction config as last param, which includes fee, nonce and attributes.

v1.2.3

10 Apr 00:41
Compare
Choose a tag to compare
  • Add package level RPC functions without requiring client or wallet
  • Use error constants whenever possible
  • Add documentation for godoc

v1.2.2

01 Apr 10:45
Compare
Choose a tag to compare
  • Send always returns non-nil OnReply for gomobile compatibility
  • Add websocket write timeout
  • Will split oversized message into multiple ones
  • Increment success and fail channel length to prevent potential signal
  • NewMultiClient will return immediately when at least one client is created

v1.2.1

25 Mar 00:03
Compare
Choose a tag to compare
  • Implement NoReply message logic for both sender and receiver
  • Rename for consistency:
    • noAck->noReply
    • pid->messageId
    • replyToPid->replyToId

v1.2.0

20 Mar 20:52
Compare
Choose a tag to compare

Version 1.2.0 introduces many major features including:

  • End to end encryption by default
  • Multiclient for better reliability and latency
  • Request-response workflow
  • Session mode for reliable, TCP-like streaming data transmission
  • Gomobile compatibility
  • Fully compatible with other sdk (e.g. nkn-sdk-js)

In addition, there are tons of minor improvements and bug fixes.