mirror of
https://github.com/aljazceru/satdress.git
synced 2025-12-18 14:04:21 +01:00
support changing usernames with pins.
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
"github.com/tidwall/sjson"
|
||||
)
|
||||
|
||||
func makeMetadata(params Params) string {
|
||||
func makeMetadata(params *Params) string {
|
||||
metadata, _ := sjson.Set("[]", "0.0", "text/identifier")
|
||||
metadata, _ = sjson.Set(metadata, "0.1", params.Name+"@"+s.Domain)
|
||||
|
||||
@@ -21,7 +21,7 @@ func makeMetadata(params Params) string {
|
||||
return metadata
|
||||
}
|
||||
|
||||
func makeInvoice(params Params, msat int) (bolt11 string, err error) {
|
||||
func makeInvoice(params *Params, msat int) (bolt11 string, err error) {
|
||||
// description_hash
|
||||
h := sha256.Sum256([]byte(makeMetadata(params)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user