Open-source 2-of-3 policy-enforced threshold HSM: auto-signs cold→hot treasury refills under on-device Coldcard policy, no human in the loop. Includes the full operator manual + quick-start, the reference coordinator/signing code, and a signer-host bootstrap. No keys, seeds, or secrets — placeholders only. Live signet demo: https://multisighsm.mineracks.com Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
14 lines
657 B
Python
14 lines
657 B
Python
import socket, base64, os
|
|
def test(port):
|
|
try:
|
|
s=socket.create_connection(('127.0.0.1',port),timeout=6)
|
|
key=base64.b64encode(os.urandom(16)).decode()
|
|
req=("GET / HTTP/1.1\r\nHost: localhost\r\nUpgrade: websocket\r\nConnection: Upgrade\r\n"
|
|
"Sec-WebSocket-Key: %s\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Protocol: binary\r\n\r\n")%key
|
|
s.sendall(req.encode())
|
|
resp=s.recv(200); s.close()
|
|
return resp.split(b"\r\n")[0].decode(errors="replace")
|
|
except Exception as e: return "ERR %s"%(repr(e)[:80])
|
|
for n,p in ((1,6911),(2,6912),(3,6913)):
|
|
print("dev%d port%d -> %s"%(n,p,test(p)))
|