Add NWC protocol handling and NIP-44 encryption and decryption functions.
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
"lol.mleku.dev/errorf"
|
||||
"next.orly.dev/pkg/encoders/text"
|
||||
utils "next.orly.dev/pkg/utils"
|
||||
"next.orly.dev/pkg/utils"
|
||||
)
|
||||
|
||||
// The tag position meanings, so they are clear when reading.
|
||||
|
||||
@@ -166,3 +166,11 @@ func (s *S) GetAll(t []byte) (all []*T) {
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func (s *S) GetTagElement(i int) (t *T) {
|
||||
if s == nil || len(*s) < i {
|
||||
return
|
||||
}
|
||||
t = (*s)[i]
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user