Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

sha1demo/v0 package

Overview

Package sha1demo is a small gnoweb demo of the SHA-1 implementation provided by the p/moul/x/daily/sha1(/p/moul/x/daily/sha1/v0) library: the published test vectors, the git object ids anyone can check with `git hash-object`, HMAC answers led by RFC 2202 test case 2, and a path that hashes whatever you give it.

It contains no hashing logic of its own. Stateless, so Render is deterministic.

Function

Render

func Render(path string) string

Render renders the demo for gnoweb.

Example
1Render("")       / Render("/") -> the vector tables
2Render("/<text>")              -> hash that text

Param

Command

gnokey query vm/qeval -remote "tcp://127.0.0.1:18899" -data "gno.land/r/moul/x/daily/sha1demo/v0.Render()"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/moul/x/daily/sha1demo/v0, for example a function call with arguments.