GrindKeyPairMatches

type GrindKeyPairMatches = 
  | RegExp
  | (address) => boolean;

A function or RegExp used to test whether a candidate base58-encoded address produced from a generated key pair satisfies the grind criteria.

  • When a RegExp is provided, its literal characters (outside of escape sequences, character classes, quantifiers, and groups) are validated up front to ensure they are all in the base58 alphabet. This catches common typos like /^ab0/ before any key generation takes place.
  • When a function is provided, it is used as-is with no validation. Use this form when you need arbitrary matching logic that falls outside what a simple regex can express.

See

On this page