Skip to content

Verifying one or more signatures against an account's public key on the Flow blockchain #38

Answered by Doge-is-Dope
kaylaatkrikey asked this question in Q&A
Discussion options

You must be logged in to vote

The signatures created by the blocto app shall be verifiable by fcl-js. If you log the signatures on Android, you shall see the returning data includes two composite signatures. Then you may be able to verify the array of signatures by fcl-js using the following code as an example.

const fcl = require("@onflow/fcl");

// Configure fcl environment
fcl.config({
  "flow.network": "testnet",
  "accessNode.api": "https://rest-testnet.onflow.org",
});

// Make sure you put the keyIds and the signatures correctly
const isValid = await fcl.AppUtils.verifyUserSignatures(Buffer.from("Hello").toString("hex"), [
    {
      f_type: "CompositeSignature",
      f_vsn: "1.0.0",
      addr: "0x9a5c23b2ba…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kaylaatkrikey
Comment options

@Doge-is-Dope
Comment options

Answer selected by Doge-is-Dope
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants