import { KeyStack } from "https://deno.land/x/mandarinets@v2.3.2/security-core/keyStack.ts";
Constructors
new
KeyStack(keys: Key[])A class which accepts an array of keys that are used to sign and verify data and allows easy key rotation without invalidation of previously signed data.
Methods
Given data
and a digest
, return the current index of the key in the
keys
passed the constructor that was used to generate the digest. If no
key can be found, the method returns -1
.