THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

main_test.go

TEXT FILE

470 B · Public source code for developers, search crawlers and AI agents

Download / RawBack to folder
Go · 17 lines
1package main
2
3import (
4	"bytes"
5	"crypto/hmac"
6	"encoding/hex"
7	"testing"
8)
9
10func TestRFC4231(t *testing.T) {
11	b := mac(bytes.Repeat([]byte{0x0b}, 20), []byte("Hi There"))
12	want := "87aa7cdea5ef619d4ff0b4241a1d6cb02379f4e2ce4ec2787ad0b30545e17cde daa833b7d6b8a702038b274eaea3f4e4be9d914eeb61f1702e696c203a126854"
13	want = want[:64] + want[65:]
14	if hex.EncodeToString(b) != want || hmac.Equal(b, mac([]byte("wrong"), []byte("Hi There"))) {
15		t.Fatal("HMAC mismatch")
16	}
17}
Read-only source · Select a line number to link directly · Raw download above

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects