Documentation
¶
Overview ¶
Package messagebox is a BRC-33 message box client, reduced to the three calls a reader and a deliverer need: send a message to one recipient's box, list a box, and acknowledge what was taken from it.
Every call is mutually authenticated (BRC-103/104) by go-sdk's AuthFetch under the caller's wallet, so the server knows who sent a message and who is listing a box, and the recipient learns the sender's identity key from the server. A box that asks for payment is refused rather than paid: the wallet handed to AuthFetch cannot create an action, so nothing here spends.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrPayment = errors.New("messagebox: the box asks for payment, which bfinger does not make")
ErrPayment is a box that wants paying, which this client never does.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client talks to one message box server.
func (*Client) Acknowledge ¶
Acknowledge removes messages from the caller's box. Acknowledging a message the server no longer holds succeeds.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mbtest is a stand-in BRC-33 message box server for tests: the three calls in the shapes of the HTTP conformance vectors, with the caller's identity taken from the header the vectors show instead of from a mutual authentication.
|
Package mbtest is a stand-in BRC-33 message box server for tests: the three calls in the shapes of the HTTP conformance vectors, with the caller's identity taken from the header the vectors show instead of from a mutual authentication. |