Documentation
¶
Index ¶
- func EnableDebugLogging()
- func UseEmulator()
- type Satscard
- func (satscard *Satscard) CertsRequest() ([]byte, error)
- func (satscard *Satscard) ISOAppletSelectRequest() ([]byte, error)
- func (satscard *Satscard) NewRequest(cvc string) ([]byte, error)
- func (satscard *Satscard) ParseResponse(response []byte) ([]byte, error)
- func (satscard *Satscard) ReadRequest() ([]byte, error)
- func (satscard *Satscard) StatusRequest() ([]byte, error)
- func (satscard *Satscard) UnsealRequest(cvc string) ([]byte, error)
- func (satscard *Satscard) WaitRequest() ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableDebugLogging ¶
func EnableDebugLogging()
EnableDebugLogging is a function that enables debug logging in the application. It creates a new text handler that writes to the standard error output and sets the log level to debug. It then sets this handler as the default handler for the slog package.
func UseEmulator ¶
func UseEmulator()
UseEmulator is a function that sets the factory root public key string to the specific value associated with the emulator.
Types ¶
type Satscard ¶
type Satscard struct { // ActiveSlot is the currently active slot on the card, counting from 0. ActiveSlot int // NumberOfSlots is the total number of slots available on the card. NumberOfSlots int // Identity is the human readable identity of the card. Identity string // ActiveSlotPaymentAddress is the payment address associated with the currently active slot. ActiveSlotPaymentAddress string // Proto is the protocol version of the card. Proto int // Birth is the block height of the card. Birth int // Version is the version of the card. Version string // ActiveSlotPrivateKey is the private key of the currently active slot. ActiveSlotPrivateKey string // AuthDelay is the authentication delay of the card. AuthDelay int // contains filtered or unexported fields }
Satscard is a struct that represents a Satscard.
func (*Satscard) CertsRequest ¶
func (*Satscard) ISOAppletSelectRequest ¶
ISO Applet Select
func (*Satscard) ParseResponse ¶
func (*Satscard) ReadRequest ¶
func (*Satscard) StatusRequest ¶
func (*Satscard) UnsealRequest ¶
func (*Satscard) WaitRequest ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.