zeroxkey_api_key_stamper 0.1.0 copy "zeroxkey_api_key_stamper: ^0.1.0" to clipboard
zeroxkey_api_key_stamper: ^0.1.0 copied to clipboard

A Dart package for API stamping functionalities.

ZeroXKey Api Stamper #

This package contains functions to stamp a ZeroXKey request. It is meant to be used with ZeroXKey's http package.

Example usage:

import 'package:zeroxkey_api_key_stamper/api_stamper.dart';
import 'package:zeroxkey_http/zeroxkey_http.dart';

// This stamper produces signatures using the API key pair passed in.
final stamper = ApiStamper(
  apiPublicKey: '...',
  apiPrivateKey: '...',
);

// The ZeroXKey client uses the passed in stamper to produce signed requests
// and sends them to ZeroXKey
final client = ZeroXKeyClient(
  config: THttpConfig(baseUrl: 'https://api.0xkey.io'),
  stamper: stamper,
);

// Now you can make authenticated requests!
final data = await client.getWhoami(
  input: TGetWhoamiRequest(organizationId: '<Your organization id>'),
);
0
likes
130
points
122
downloads

Documentation

API reference

Publisher

verified publisher0xkey.io

Weekly Downloads

A Dart package for API stamping functionalities.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

crypto, ecdsa, elliptic, flutter, zeroxkey_crypto, zeroxkey_encoding

More

Packages that depend on zeroxkey_api_key_stamper