Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ğ
Ğcli-v2s
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Rust
Ğcli-v2s
Commits
fe154a5a
Commit
fe154a5a
authored
3 weeks ago
by
poka
Browse files
Options
Downloads
Patches
Plain Diff
fix args
parent
47c0fa7c
No related branches found
No related tags found
1 merge request
!45
Nostr
Pipeline
#40612
passed
3 weeks ago
Stage: tests
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/commands/profile.rs
+6
-4
6 additions, 4 deletions
src/commands/profile.rs
with
6 additions
and
4 deletions
src/commands/profile.rs
+
6
−
4
View file @
fe154a5a
...
...
@@ -491,8 +491,9 @@ pub async fn handle_command(data: Data, command: Subcommand) -> Result<(), GcliE
/// Get Nostr profile from a relay
async
fn
get_profile
(
data
:
Data
,
relay_url
:
Option
<
String
>
)
->
Result
<
(),
GcliError
>
{
// Get keypair from vault using configured address
let
keypair
=
fetch_or_get_keypair
(
&
data
,
data
.cfg.address
.clone
())
.await
?
;
// Get keypair for signing
// Use the configured address or prompt the user if not set
let
keypair
=
fetch_or_get_keypair
(
&
data
,
data
.cfg.address
.clone
(),
Some
(
CryptoScheme
::
Ed25519
))
.await
?
;
// Get Nostr pubkey in hex format (used for protocol)
let
pubkey
=
get_nostr_pubkey
(
&
keypair
)
?
;
...
...
@@ -705,8 +706,9 @@ async fn set_profile(
return
Ok
(());
}
// Get keypair from vault using configured address
let
keypair
=
fetch_or_get_keypair
(
&
data
,
data
.cfg.address
.clone
())
.await
?
;
// Get keypair for signing
// Use the configured address or prompt the user if not set
let
keypair
=
fetch_or_get_keypair
(
&
data
,
data
.cfg.address
.clone
(),
Some
(
CryptoScheme
::
Ed25519
))
.await
?
;
// Get Nostr pubkey in hex format (used for protocol)
let
pubkey
=
get_nostr_pubkey
(
&
keypair
)
?
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment