Skip to content

Version 0.25.0

Choose a tag to compare

@devbugging devbugging released this 19 May 09:14
· 1056 commits to master since this release
de1578d

⭐ Features

HTTP API Implementation

The HTTP API implementation gives you the power to choose between gRPC and HTTP communication methods, and because they both implement the same Client interface the switch is seamless. Please be mindful of the deprecation of the client package, although you can still use deprecated APIs they will be removed in the future. We have prepared a migration guide which you can find here..

⚠️ Please be careful about the deprecated changes before updating! ⚠️

Usage of the new client:

// common client interface
var flowClient client.Client
// initialize an http emulator client
flowClient, err := http.NewDefaultEmulatorClient(false)
// initialize a gPRC emulator client
flowClient, err = grpc.NewDefaultEmulatorClient()

Direct usage of the client exposes more APIs that are only available for that specific client:

// initialize http specific client
httpClient, err := http.NewHTTPClient(http.EMULATOR_URL)
// initialize grpc specific client
grpcClient, err := grpc.NewGRPCClient(
    grpc.EMULATOR_URL,
    grpcOpts.WithTransportCredentials(insecure.NewCredentials()),
)

Add updated account proof encoding function

The new EncodeAccountProofMessagefunction creates a new account proof message for singing. The encoded message returned does not include the user domain tag. (#264) @bfbachmann

🛠 Improvements

  • Fix CloudKMS signer is not threadsafe (#261) @judezhu
  • Export CloudKMS functions and add method for accessing KeyManagementClient (#242) @nanuuki
  • Remove block signatures (#268) @sideninja
  • Extract Cadence templates (#255) @sideninja
  • General crypto updates (#266) @tarakby
  • Code coverage GitHub Action (#269) @sideninja
  • Fix adding account key (#277) @sideninja
  • Add block ID in transaction result (#275) @rrrkren
  • Implement signature field on Block struct (#251) @HarleyAppleChoi
  • Add account proof helpers (#244) @bfbachmann

🐞 Bug Fixes

📖 Documentation

Maintenance

  • Add new code owner for the crypto package (#284) @tarakby
  • Add new code owner (#252) @sideninja