Skip to content

Commit 39673f2

Browse files
authored
Merge pull request #1688 from lightninglabs/docs-update
taprpc: update API documentation
2 parents b505537 + c6b6615 commit 39673f2

18 files changed

+808
-217
lines changed

rpcserver.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6534,7 +6534,9 @@ func (r *rpcServer) PushProof(ctx context.Context,
65346534
}, nil
65356535
}
65366536

6537-
// Info returns a set of information about the current state of the Universe.
6537+
// Info returns a set of information about the current state of the Universe
6538+
// and allows a caller to check that a universe server is reachable and
6539+
// configured correctly to allow proof courier access without macaroons.
65386540
func (r *rpcServer) Info(ctx context.Context,
65396541
_ *unirpc.InfoRequest) (*unirpc.InfoResponse, error) {
65406542

taprpc/assetwalletrpc/assetwallet.pb.go

Lines changed: 22 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

taprpc/assetwalletrpc/assetwallet.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,18 +417,23 @@ message PublishAndLogRequest {
417417
}
418418

419419
message NextInternalKeyRequest {
420+
// The key family to derive the next internal key for.
420421
uint32 key_family = 1;
421422
}
422423

423424
message NextInternalKeyResponse {
425+
// The full key descriptor of the internal key that was derived.
424426
taprpc.KeyDescriptor internal_key = 1;
425427
}
426428

427429
message NextScriptKeyRequest {
430+
// The key family to derive the next script key for.
428431
uint32 key_family = 1;
429432
}
430433

431434
message NextScriptKeyResponse {
435+
// The full script key information that was derived, including the
436+
// internal key and the tweaked script key.
432437
taprpc.ScriptKey script_key = 1;
433438
}
434439

@@ -439,6 +444,7 @@ message QueryInternalKeyRequest {
439444
}
440445

441446
message QueryInternalKeyResponse {
447+
// The full key descriptor of the internal key that was queried.
442448
taprpc.KeyDescriptor internal_key = 1;
443449
}
444450

@@ -450,14 +456,21 @@ message QueryScriptKeyRequest {
450456
}
451457

452458
message QueryScriptKeyResponse {
459+
// The full script key information that was queried, including the
460+
// internal key and the tweaked script key.
453461
taprpc.ScriptKey script_key = 1;
454462
}
455463

456464
message ProveAssetOwnershipRequest {
465+
// The asset ID of the asset to prove ownership of. This is the 32-byte
466+
// asset ID that identifies a particular asset or tranche of assets.
457467
bytes asset_id = 1;
458468

469+
// The script key that is used to spend the asset.
459470
bytes script_key = 2;
460471

472+
// The outpoint of the asset UTXO that is being proven to be owned by the
473+
// prover.
461474
taprpc.OutPoint outpoint = 3;
462475

463476
// An optional 32-byte challenge that may be used to bind the generated
@@ -471,6 +484,8 @@ message ProveAssetOwnershipResponse {
471484
}
472485

473486
message VerifyAssetOwnershipRequest {
487+
// The full ownership proof that was generated, including the witness data
488+
// that contains the proving signature.
474489
bytes proof_with_witness = 1;
475490

476491
// An optional 32-byte challenge that may be used to check the ownership
@@ -480,6 +495,7 @@ message VerifyAssetOwnershipRequest {
480495
}
481496

482497
message VerifyAssetOwnershipResponse {
498+
// Whether the ownership proof is valid or not.
483499
bool valid_proof = 1;
484500

485501
// The outpoint the proof commits to.
@@ -507,9 +523,12 @@ message RemoveUTXOLeaseResponse {
507523
}
508524

509525
message DeclareScriptKeyRequest {
526+
// The script key the wallet should be informed about.
510527
taprpc.ScriptKey script_key = 1;
511528
}
512529

513530
message DeclareScriptKeyResponse {
531+
// The script key that was declared, including the internal key and the
532+
// tweaked script key.
514533
taprpc.ScriptKey script_key = 1;
515534
}

0 commit comments

Comments
 (0)