@@ -537,13 +537,11 @@ type decryptOnionMessageData struct {
537537}
538538
539539type decryptHops struct {
540- //nolint:tagliatelle
541540 Onion string `json:"onion"`
542541 NodePrivKey string `json:"node_privkey"`
543542 NextBlinding string `json:"next_blinding"`
544543}
545544
546- //nolint:tagliatelle
547545type decryptOnionMessageHops struct {
548546 OnionMessage string `json:"onion_message"`
549547 PrivKey string `json:"privkey"`
@@ -564,20 +562,17 @@ type onionMessageJsonTestCase struct {
564562}
565563
566564type routeData struct {
567- //nolint:tagliatelle
568565 IntroductionNodeID string `json:"introduction_node_id"`
569566 Blinding string `json:"blinding"`
570567 Hops []blindedHop `json:"hops"`
571568}
572569
573- //nolint:tagliatelle
574570type routeOnionMessageData struct {
575571 FirstNodeId string `json:"first_node_id"`
576572 FirstPathKey string `json:"first_path_key"`
577573 Hops []blindedOnionMessageHop `json:"hops"`
578574}
579575
580- //nolint:tagliatelle
581576type onionMessageData struct {
582577 OnionMessagePacket string `json:"onion_message_packet"`
583578}
@@ -590,15 +585,13 @@ type generateData struct {
590585 Hops []hopData `json:"hops"`
591586}
592587
593- //nolint:tagliatelle
594588type generateOnionMessageData struct {
595589 SessionKey string `json:"session_key"`
596590 Hops []hopOnionMessageData `json:"hops"`
597591}
598592
599593type unblindedHop struct {
600594 NodePrivKey string `json:"node_privkey"`
601- //nolint:tagliatelle
602595 EphemeralPubKey string `json:"ephemeral_pubkey"`
603596 DecryptedData string `json:"decrypted_data"`
604597 NextEphemeralPubKey string `json:"next_ephemeral_pubkey"`
@@ -610,31 +603,27 @@ type hopData struct {
610603 EncodedTLVs string `json:"encoded_tlvs"`
611604}
612605
613- //nolint:tagliatelle
614606type hopOnionMessageData struct {
615607 PathKeySecret string `json:"path_key_secret"`
616608 EncodedOnionMessageTLVs encodedOnionMessageTLVs `json:"tlvs"`
617609 EncryptedDataTlv string `json:"encrypted_data_tlv"` //nolint:lll
618- EphemeralPubKey string `json:"E"`
610+ EphemeralPubKey string `json:"E"` //nolint:tagliatelle
619611 NextEphemeralPrivKey string `json:"next_e"`
620612 EncryptedRecipientData string `json:"encrypted_recipient_data"` //nolint:lll
621613}
622614
623- //nolint:tagliatelle
624615type encodedOnionMessageTLVs struct {
625616 NextNodeID string `json:"next_node_id"`
626617 NextPathKeyOverride string `json:"next_path_key_override"`
627618 PathKeyOverrideSecret string `json:"path_key_override_secret"`
628619 PathID string `json:"path_id"`
629620}
630621
631- //nolint:tagliatelle
632622type blindedHop struct {
633623 BlindedNodeID string `json:"blinded_node_id"`
634624 EncryptedData string `json:"encrypted_data"`
635625}
636626
637- //nolint:tagliatelle
638627type blindedOnionMessageHop struct {
639628 BlindedNodeID string `json:"blinded_node_id"`
640629 EncryptedRecipientData string `json:"encrypted_recipient_data"`
0 commit comments