This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@polywrap/sha3-plugin-js
TypeScript icon, indicating that this package has built-in type declarations

0.6.0 • Public • Published

@polywrap/sha3-plugin-js

SHA3 Plugin provides the Polywrap JS Client with SHA-3 / Keccak / Shake hash functions.

Usage

import { PolywrapClient } from "@polywrap/client-js"
import { sha3Plugin } from "@polywrap/sha3-plugin-js";

export async function foo({

  const sha3PluginUri = "wrap://ens/sha3.polywrap.eth";

  const client = new PolywrapClient({
    plugins: [
      {
        uri: sha3PluginUri,
        plugin: sha3Plugin({}),
      },
    ]
  });

  const response = await client.invoke<string>({
    uri: sha3PluginUri,
    method: "sha3_512",
    args: {
      message: "test message to hash"
    }
  })
})

API

Full API in src/schema.graphql

Readme

Keywords

none

Package Sidebar

Install

npm i @polywrap/sha3-plugin-js

Weekly Downloads

2

Version

0.6.0

License

MIT

Unpacked Size

41.5 kB

Total Files

21

Last publish

Collaborators

  • dorgjelli
  • polywrap-build-bot