INNER CODE UNIT · Python

ret

polhenarejos/pico-hsm · tools/pico-hsm-tool.py:522

        ret = picohsm.hd_signature([id] + path, data)
        if (args.file_out):
            fout = open(args.file_out, 'wb')
            fout.write(bytes(ret))
            fout.close()
        else:
            sys.stdout.buffer.write(bytes(ret))

def parse_derivation_path(path):
    if path == "m":
        return []
    if len(path) < 3:
        raise ValueError(f"derivation path too short: {path}")
    elems = path.split("/")
    if elems[0] != 'm':
        raise ValueError(f"derivation path {path} does not begin with 'm/'")
    indices = []
    for e in elems[1:]:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…