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.go

TEXT FILE

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

Download / RawBack to folder
Go · 24 lines
1package main
2
3import (
4	"crypto/sha256"
5	"fmt"
6	"github.com/btcsuite/btcd/btcec/v2"
7	"github.com/btcsuite/btcd/btcec/v2/schnorr"
8)
9
10func fixture() *btcec.PrivateKey {
11	b := make([]byte, 32)
12	b[31] = 3
13	k, _ := btcec.PrivKeyFromBytes(b)
14	return k
15}
16func main() {
17	k := fixture()
18	h := sha256.Sum256([]byte("educational message"))
19	s, e := schnorr.Sign(k, h[:])
20	if e != nil {
21		panic(e)
22	}
23	fmt.Printf("x-only: %x\nsignature: %x\nverified: %t\n", schnorr.SerializePubKey(k.PubKey()), s.Serialize(), s.Verify(h[:], k.PubKey()))
24}
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