feat: tip frame (sign/verify/encode/decode), wallet balance + receive address, F6 wallet screen with QR, dispatch Kind::Tip
This commit is contained in:
parent
7b147d8ebe
commit
10d81964a5
10 changed files with 511 additions and 24 deletions
|
|
@ -7,6 +7,7 @@ pub enum Kind {
|
|||
Profile,
|
||||
Invoice,
|
||||
Receipt,
|
||||
Tip,
|
||||
Ping,
|
||||
File,
|
||||
Drop,
|
||||
|
|
@ -25,6 +26,9 @@ pub fn classify(pt: &[u8]) -> Kind {
|
|||
if pt.starts_with(b"rcp ") {
|
||||
return Kind::Receipt;
|
||||
}
|
||||
if pt.starts_with(b"tip ") {
|
||||
return Kind::Tip;
|
||||
}
|
||||
if pt.starts_with(b"png ") {
|
||||
return Kind::Ping;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue