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

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

Download / RawBack to folder
Go · 23 lines
1package main
2
3import (
4	"math/big"
5	"testing"
6)
7
8func TestBounds(t *testing.T) {
9	for _, n := range []*big.Int{big.NewInt(0), order} {
10		if valid(n.FillBytes(make([]byte, 32))) {
11			t.Fatal("invalid scalar accepted")
12		}
13	}
14	if !valid(big.NewInt(1).FillBytes(make([]byte, 32))) || valid([]byte{1}) {
15		t.Fatal("bounds")
16	}
17}
18func TestGenerate(t *testing.T) {
19	b, e := generate()
20	if e != nil || !valid(b) {
21		t.Fatal("generation failed")
22	}
23}
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