Function encode

  • Asynchronously encodes a Blueprint into a blueprint string. Does not include the "DSA:" prefix, consider adding it on a public app.

    Parameters

    Returns Promise<string>

    import { encode, PREFIX } from "dsabp-js"

    const str = PREFIX + await encode(bp)