<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <updated></updated>
  <generator>https://nostr.ae</generator>

  <title>Nostr notes by </title>
  <author>
    <name></name>
  </author>
  <link rel="self" type="application/atom+xml" href="https://nostr.ae/npub13pvycyyuyczv0l0chj75tzjaypq3j8xnz5a02fmjkaw0mhmcqe7sdegxya.rss" />
  <link href="https://nostr.ae/npub13pvycyyuyczv0l0chj75tzjaypq3j8xnz5a02fmjkaw0mhmcqe7sdegxya" />
  <id>https://nostr.ae/npub13pvycyyuyczv0l0chj75tzjaypq3j8xnz5a02fmjkaw0mhmcqe7sdegxya</id>
  <icon></icon>
  <logo></logo>




  <entry>
    <id>https://nostr.ae/nevent1qqs2k3uapuvtzl4c6gpw47nls0gj79rd4r0gyvqy3p8zr7f4nrrej4szyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr864rg0ug</id>
    
      <title type="html">GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqs2k3uapuvtzl4c6gpw47nls0gj79rd4r0gyvqy3p8zr7f4nrrej4szyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr864rg0ug" />
    <content type="html">
                          GNU AFFERO GENERAL PUBLIC LICENSE&lt;br/&gt;                       Version 3, 19 November 2007&lt;br/&gt;&lt;br/&gt; Copyright (C) 2007 Free Software Foundation, Inc. &amp;lt;&lt;a href=&#34;https://fsf.org/&amp;gt&#34;&gt;https://fsf.org/&amp;gt&lt;/a&gt;;&lt;br/&gt; Everyone is permitted to copy and distribute verbatim copies&lt;br/&gt; of this license document, but changing it is not allowed.&lt;br/&gt;&lt;br/&gt;                            Preamble&lt;br/&gt;&lt;br/&gt;  The GNU Affero General Public License is a free, copyleft license for&lt;br/&gt;software and other kinds of works, specifically designed to ensure&lt;br/&gt;cooperation with the community in the case of network server software.&lt;br/&gt;&lt;br/&gt;  The licenses for most software and other practical works are designed&lt;br/&gt;to take away your freedom to share and change the works.  By contrast,&lt;br/&gt;our General Public Licenses are intended to guarantee your freedom to&lt;br/&gt;share and change all versions of a program--to make sure it remains free&lt;br/&gt;software for all its users.&lt;br/&gt;&lt;br/&gt;  When we speak of free software, we are referring to freedom, not&lt;br/&gt;price.  Our General Public Licenses are designed to make sure that you&lt;br/&gt;have the freedom to distribute copies of free software (and charge for&lt;br/&gt;them if you wish), that you receive source code or can get it if you&lt;br/&gt;want it, that you can change the software or use pieces of it in new&lt;br/&gt;free programs, and that you know you can do these things.&lt;br/&gt;&lt;br/&gt;  Developers that use our General Public Licenses protect your rights&lt;br/&gt;with two steps: (1) assert copyright on the software, and (2) offer&lt;br/&gt;you this License which gives you legal permission to copy, distribute&lt;br/&gt;and/or modify the software.&lt;br/&gt;&lt;br/&gt;  A secondary benefit of defending all users&amp;#39; freedom is that&lt;br/&gt;improvements made in alternate versions of the program, if they&lt;br/&gt;receive widespread use, become available for other developers to&lt;br/&gt;incorporate.  Many developers of free software are heartened and&lt;br/&gt;encouraged by the resulting cooperation.  However, in the case of&lt;br/&gt;software used on network servers, this result may fail to come about.&lt;br/&gt;The GNU General Public License permits making a modified version and&lt;br/&gt;letting the public access it on a server without ever releasing its&lt;br/&gt;source code to the public.&lt;br/&gt;&lt;br/&gt;  The GNU Affero General Public License is designed specifically to&lt;br/&gt;ensure that, in such cases, the modified source code becomes available&lt;br/&gt;to the community.  It requires the operator of a network server to&lt;br/&gt;provide the source code of the modified version running there to the&lt;br/&gt;users of that server.  Therefore, public use of a modified version, on&lt;br/&gt;a publicly accessible server, gives the public access to the source&lt;br/&gt;code of the modified version.&lt;br/&gt;&lt;br/&gt;  An older license, called the Affero General Public License and&lt;br/&gt;published by Affero, was designed to accomplish similar goals.  This is&lt;br/&gt;a different license, not a version of the Affero GPL, but Affero has&lt;br/&gt;released a new version of the Affero GPL which permits relicensing under&lt;br/&gt;this license.&lt;br/&gt;&lt;br/&gt;  The precise terms and conditions for copying, distribution and&lt;br/&gt;modification follow.&lt;br/&gt;&lt;br/&gt;                       TERMS AND CONDITIONS&lt;br/&gt;&lt;br/&gt;  0. Definitions.&lt;br/&gt;&lt;br/&gt;  &amp;#34;This License&amp;#34; refers to version 3 of the GNU Affero General Public License.&lt;br/&gt;&lt;br/&gt;  &amp;#34;Copyright&amp;#34; also means copyright-like laws that apply to other kinds of&lt;br/&gt;works, such as semiconductor masks.&lt;br/&gt;&lt;br/&gt;  &amp;#34;The Program&amp;#34; refers to any copyrightable work licensed under this&lt;br/&gt;License.  Each licensee is addressed as &amp;#34;you&amp;#34;.  &amp;#34;Licensees&amp;#34; and&lt;br/&gt;&amp;#34;recipients&amp;#34; may be individuals or organizations.&lt;br/&gt;&lt;br/&gt;  To &amp;#34;modify&amp;#34; a work means to copy from or adapt all or part of the work&lt;br/&gt;in a fashion requiring copyright permission, other than the making of an&lt;br/&gt;exact copy.  The resulting work is called a &amp;#34;modified version&amp;#34; of the&lt;br/&gt;earlier work or a work &amp;#34;based on&amp;#34; the earlier work.&lt;br/&gt;&lt;br/&gt;  A &amp;#34;covered work&amp;#34; means either the unmodified Program or a work based&lt;br/&gt;on the Program.&lt;br/&gt;&lt;br/&gt;  To &amp;#34;propagate&amp;#34; a work means to do anything with it that, without&lt;br/&gt;permission, would make you directly or secondarily liable for&lt;br/&gt;infringement under applicable copyright law, except executing it on a&lt;br/&gt;computer or modifying a private copy.  Propagation includes copying,&lt;br/&gt;distribution (with or without modification), making available to the&lt;br/&gt;public, and in some countries other activities as well.&lt;br/&gt;&lt;br/&gt;  To &amp;#34;convey&amp;#34; a work means any kind of propagation that enables other&lt;br/&gt;parties to make or receive copies.  Mere interaction with a user through&lt;br/&gt;a computer network, with no transfer of a copy, is not conveying.&lt;br/&gt;&lt;br/&gt;  An interactive user interface displays &amp;#34;Appropriate Legal Notices&amp;#34;&lt;br/&gt;to the extent that it includes a convenient and prominently visible&lt;br/&gt;feature that (1) displays an appropriate copyright notice, and (2)&lt;br/&gt;tells the user that there is no warranty for the work (except to the&lt;br/&gt;extent that warranties are provided), that licensees may convey the&lt;br/&gt;work under this License, and how to view a copy of this License.  If&lt;br/&gt;the interface presents a list of user commands or options, such as a&lt;br/&gt;menu, a prominent item in the list meets this criterion.&lt;br/&gt;&lt;br/&gt;  1. Source Code.&lt;br/&gt;&lt;br/&gt;  The &amp;#34;source code&amp;#34; for a work means the preferred form of the work&lt;br/&gt;for making modifications to it.  &amp;#34;Object code&amp;#34; means any non-source&lt;br/&gt;form of a work.&lt;br/&gt;&lt;br/&gt;  A &amp;#34;Standard Interface&amp;#34; means an interface that either is an official&lt;br/&gt;standard defined by a recognized standards body, or, in the case of&lt;br/&gt;interfaces specified for a particular programming language, one that&lt;br/&gt;is widely used among developers working in that language.&lt;br/&gt;&lt;br/&gt;  The &amp;#34;System Libraries&amp;#34; of an executable work include anything, other&lt;br/&gt;than the work as a whole, that (a) is included in the normal form of&lt;br/&gt;packaging a Major Component, but which is not part of that Major&lt;br/&gt;Component, and (b) serves only to enable use of the work with that&lt;br/&gt;Major Component, or to implement a Standard Interface for which an&lt;br/&gt;implementation is available to the public in source code form.  A&lt;br/&gt;&amp;#34;Major Component&amp;#34;, in this context, means a major essential component&lt;br/&gt;(kernel, window system, and so on) of the specific operating system&lt;br/&gt;(if any) on which the executable work runs, or a compiler used to&lt;br/&gt;produce the work, or an object code interpreter used to run it.&lt;br/&gt;&lt;br/&gt;  The &amp;#34;Corresponding Source&amp;#34; for a work in object code form means all&lt;br/&gt;the source code needed to generate, install, and (for an executable&lt;br/&gt;work) run the object code and to modify the work, including scripts to&lt;br/&gt;control those activities.  However, it does not include the work&amp;#39;s&lt;br/&gt;System Libraries, or general-purpose tools or generally available free&lt;br/&gt;programs which are used unmodified in performing those activities but&lt;br/&gt;which are not part of the work.  For example, Corresponding Source&lt;br/&gt;includes interface definition files associated with source files for&lt;br/&gt;the work, and the source code for shared libraries and dynamically&lt;br/&gt;linked subprograms that the work is specifically designed to require,&lt;br/&gt;such as by intimate data communication or control flow between those&lt;br/&gt;subprograms and other parts of the work.&lt;br/&gt;&lt;br/&gt;  The Corresponding Source need not include anything that users&lt;br/&gt;can regenerate automatically from other parts of the Corresponding&lt;br/&gt;Source.&lt;br/&gt;&lt;br/&gt;  The Corresponding Source for a work in source code form is that&lt;br/&gt;same work.&lt;br/&gt;&lt;br/&gt;  2. Basic Permissions.&lt;br/&gt;&lt;br/&gt;  All rights granted under this License are granted for the term of&lt;br/&gt;copyright on the Program, and are irrevocable provided the stated&lt;br/&gt;conditions are met.  This License explicitly affirms your unlimited&lt;br/&gt;permission to run the unmodified Program.  The output from running a&lt;br/&gt;covered work is covered by this License only if the output, given its&lt;br/&gt;content, constitutes a covered work.  This License acknowledges your&lt;br/&gt;rights of fair use or other equivalent, as provided by copyright law.&lt;br/&gt;&lt;br/&gt;  You may make, run and propagate covered works that you do not&lt;br/&gt;convey, without conditions so long as your license otherwise remains&lt;br/&gt;in force.  You may convey covered works to others for the sole purpose&lt;br/&gt;of having them make modifications exclusively for you, or provide you&lt;br/&gt;with facilities for running those works, provided that you comply with&lt;br/&gt;the terms of this License in conveying all material for which you do&lt;br/&gt;not control copyright.  Those thus making or running the covered works&lt;br/&gt;for you must do so exclusively on your behalf, under your direction&lt;br/&gt;and control, on terms that prohibit them from making any copies of&lt;br/&gt;your copyrighted material outside their relationship with you.&lt;br/&gt;&lt;br/&gt;  Conveying under any other circumstances is permitted solely under&lt;br/&gt;the conditions stated below.  Sublicensing is not allowed; section 10&lt;br/&gt;makes it unnecessary.&lt;br/&gt;&lt;br/&gt;  3. Protecting Users&amp;#39; Legal Rights From Anti-Circumvention Law.&lt;br/&gt;&lt;br/&gt;  No covered work shall be deemed part of an effective technological&lt;br/&gt;measure under any applicable law fulfilling obligations under article&lt;br/&gt;11 of the WIPO copyright treaty adopted on 20 December 1996, or&lt;br/&gt;similar laws prohibiting or restricting circumvention of such&lt;br/&gt;measures.&lt;br/&gt;&lt;br/&gt;  When you convey a covered work, you waive any legal power to forbid&lt;br/&gt;circumvention of technological measures to the extent such circumvention&lt;br/&gt;is effected by exercising rights under this License with respect to&lt;br/&gt;the covered work, and you disclaim any intention to limit operation or&lt;br/&gt;modification of the work as a means of enforcing, against the work&amp;#39;s&lt;br/&gt;users, your or third parties&amp;#39; legal rights to forbid circumvention of&lt;br/&gt;technological measures.&lt;br/&gt;&lt;br/&gt;  4. Conveying Verbatim Copies.&lt;br/&gt;&lt;br/&gt;  You may convey verbatim copies of the Program&amp;#39;s source code as you&lt;br/&gt;receive it, in any medium, provided that you conspicuously and&lt;br/&gt;appropriately publish on each copy an appropriate copyright notice;&lt;br/&gt;keep intact all notices stating that this License and any&lt;br/&gt;non-permissive terms added in accord with section 7 apply to the code;&lt;br/&gt;keep intact all notices of the absence of any warranty; and give all&lt;br/&gt;recipients a copy of this License along with the Program.&lt;br/&gt;&lt;br/&gt;  You may charge any price or no price for each copy that you convey,&lt;br/&gt;and you may offer support or warranty protection for a fee.&lt;br/&gt;&lt;br/&gt;  5. Conveying Modified Source Versions.&lt;br/&gt;&lt;br/&gt;  You may convey a work based on the Program, or the modifications to&lt;br/&gt;produce it from the Program, in the form of source code under the&lt;br/&gt;terms of section 4, provided that you also meet all of these conditions:&lt;br/&gt;&lt;br/&gt;    a) The work must carry prominent notices stating that you modified&lt;br/&gt;    it, and giving a relevant date.&lt;br/&gt;&lt;br/&gt;    b) The work must carry prominent notices stating that it is&lt;br/&gt;    released under this License and any conditions added under section&lt;br/&gt;    7.  This requirement modifies the requirement in section 4 to&lt;br/&gt;    &amp;#34;keep intact all notices&amp;#34;.&lt;br/&gt;&lt;br/&gt;    c) You must license the entire work, as a whole, under this&lt;br/&gt;    License to anyone who comes into possession of a copy.  This&lt;br/&gt;    License will therefore apply, along with any applicable section 7&lt;br/&gt;    additional terms, to the whole of the work, and all its parts,&lt;br/&gt;    regardless of how they are packaged.  This License gives no&lt;br/&gt;    permission to license the work in any other way, but it does not&lt;br/&gt;    invalidate such permission if you have separately received it.&lt;br/&gt;&lt;br/&gt;    d) If the work has interactive user interfaces, each must display&lt;br/&gt;    Appropriate Legal Notices; however, if the Program has interactive&lt;br/&gt;    interfaces that do not display Appropriate Legal Notices, your&lt;br/&gt;    work need not make them do so.&lt;br/&gt;&lt;br/&gt;  A compilation of a covered work with other separate and independent&lt;br/&gt;works, which are not by their nature extensions of the covered work,&lt;br/&gt;and which are not combined with it such as to form a larger program,&lt;br/&gt;in or on a volume of a storage or distribution medium, is called an&lt;br/&gt;&amp;#34;aggregate&amp;#34; if the compilation and its resulting copyright are not&lt;br/&gt;used to limit the access or legal rights of the compilation&amp;#39;s users&lt;br/&gt;beyond what the individual works permit.  Inclusion of a covered work&lt;br/&gt;in an aggregate does not cause this License to apply to the other&lt;br/&gt;parts of the aggregate.&lt;br/&gt;&lt;br/&gt;  6. Conveying Non-Source Forms.&lt;br/&gt;&lt;br/&gt;  You may convey a covered work in object code form under the terms&lt;br/&gt;of sections 4 and 5, provided that you also convey the&lt;br/&gt;machine-readable Corresponding Source under the terms of this License,&lt;br/&gt;in one of these ways:&lt;br/&gt;&lt;br/&gt;    a) Convey the object code in, or embodied in, a physical product&lt;br/&gt;    (including a physical distribution medium), accompanied by the&lt;br/&gt;    Corresponding Source fixed on a durable physical medium&lt;br/&gt;    customarily used for software interchange.&lt;br/&gt;&lt;br/&gt;    b) Convey the object code in, or embodied in, a physical product&lt;br/&gt;    (including a physical distribution medium), accompanied by a&lt;br/&gt;    written offer, valid for at least three years and valid for as&lt;br/&gt;    long as you offer spare parts or customer support for that product&lt;br/&gt;    model, to give anyone who possesses the object code either (1) a&lt;br/&gt;    copy of the Corresponding Source for all the software in the&lt;br/&gt;    product that is covered by this License, on a durable physical&lt;br/&gt;    medium customarily used for software interchange, for a price no&lt;br/&gt;    more than your reasonable cost of physically performing this&lt;br/&gt;    conveying of source, or (2) access to copy the&lt;br/&gt;    Corresponding Source from a network server at no charge.&lt;br/&gt;&lt;br/&gt;    c) Convey individual copies of the object code with a copy of the&lt;br/&gt;    written offer to provide the Corresponding Source.  This&lt;br/&gt;    alternative is allowed only occasionally and noncommercially, and&lt;br/&gt;    only if you received the object code with such an offer, in accord&lt;br/&gt;    with subsection 6b.&lt;br/&gt;&lt;br/&gt;    d) Convey the object code by offering access from a designated&lt;br/&gt;    place (gratis or for a charge), and offer equivalent access to the&lt;br/&gt;    Corresponding Source in the same way through the same place at no&lt;br/&gt;    further charge.  You need not require recipients to copy the&lt;br/&gt;    Corresponding Source along with the object code.  If the place to&lt;br/&gt;    copy the object code is a network server, the Corresponding Source&lt;br/&gt;    may be on a different server (operated by you or a third party)&lt;br/&gt;    that supports equivalent copying facilities, provided you maintain&lt;br/&gt;    clear directions next to the object code saying where to find the&lt;br/&gt;    Corresponding Source.  Regardless of what server hosts the&lt;br/&gt;    Corresponding Source, you remain obligated to ensure that it is&lt;br/&gt;    available for as long as needed to satisfy these requirements.&lt;br/&gt;&lt;br/&gt;    e) Convey the object code using peer-to-peer transmission, provided&lt;br/&gt;    you inform other peers where the object code and Corresponding&lt;br/&gt;    Source of the work are being offered to the general public at no&lt;br/&gt;    charge under subsection 6d.&lt;br/&gt;&lt;br/&gt;  A separable portion of the object code, whose source code is excluded&lt;br/&gt;from the Corresponding Source as a System Library, need not be&lt;br/&gt;included in conveying the object code work.&lt;br/&gt;&lt;br/&gt;  A &amp;#34;User Product&amp;#34; is either (1) a &amp;#34;consumer product&amp;#34;, which means any&lt;br/&gt;tangible personal property which is normally used for personal, family,&lt;br/&gt;or household purposes, or (2) anything designed or sold for incorporation&lt;br/&gt;into a dwelling.  In determining whether a product is a consumer product,&lt;br/&gt;doubtful cases shall be resolved in favor of coverage.  For a particular&lt;br/&gt;product received by a particular user, &amp;#34;normally used&amp;#34; refers to a&lt;br/&gt;typical or common use of that class of product, regardless of the status&lt;br/&gt;of the particular user or of the way in which the particular user&lt;br/&gt;actually uses, or expects or is expected to use, the product.  A product&lt;br/&gt;is a consumer product regardless of whether the product has substantial&lt;br/&gt;commercial, industrial or non-consumer uses, unless such uses represent&lt;br/&gt;the only significant mode of use of the product.&lt;br/&gt;&lt;br/&gt;  &amp;#34;Installation Information&amp;#34; for a User Product means any methods,&lt;br/&gt;procedures, authorization keys, or other information required to install&lt;br/&gt;and execute modified versions of a covered work in that User Product from&lt;br/&gt;a modified version of its Corresponding Source.  The information must&lt;br/&gt;suffice to ensure that the continued functioning of the modified object&lt;br/&gt;code is in no case prevented or interfered with solely because&lt;br/&gt;modification has been made.&lt;br/&gt;&lt;br/&gt;  If you convey an object code work under this section in, or with, or&lt;br/&gt;specifically for use in, a User Product, and the conveying occurs as&lt;br/&gt;part of a transaction in which the right of possession and use of the&lt;br/&gt;User Product is transferred to the recipient in perpetuity or for a&lt;br/&gt;fixed term (regardless of how the transaction is characterized), the&lt;br/&gt;Corresponding Source conveyed under this section must be accompanied&lt;br/&gt;by the Installation Information.  But this requirement does not apply&lt;br/&gt;if neither you nor any third party retains the ability to install&lt;br/&gt;modified object code on the User Product (for example, the work has&lt;br/&gt;been installed in ROM).&lt;br/&gt;&lt;br/&gt;  The requirement to provide Installation Information does not include a&lt;br/&gt;requirement to continue to provide support service, warranty, or updates&lt;br/&gt;for a work that has been modified or installed by the recipient, or for&lt;br/&gt;the User Product in which it has been modified or installed.  Access to a&lt;br/&gt;network may be denied when the modification itself materially and&lt;br/&gt;adversely affects the operation of the network or violates the rules and&lt;br/&gt;protocols for communication across the network.&lt;br/&gt;&lt;br/&gt;  Corresponding Source conveyed, and Installation Information provided,&lt;br/&gt;in accord with this section must be in a format that is publicly&lt;br/&gt;documented (and with an implementation available to the public in&lt;br/&gt;source code form), and must require no special password or key for&lt;br/&gt;unpacking, reading or copying.&lt;br/&gt;&lt;br/&gt;  7. Additional Terms.&lt;br/&gt;&lt;br/&gt;  &amp;#34;Additional permissions&amp;#34; are terms that supplement the terms of this&lt;br/&gt;License by making exceptions from one or more of its conditions.&lt;br/&gt;Additional permissions that are applicable to the entire Program shall&lt;br/&gt;be treated as though they were included in this License, to the extent&lt;br/&gt;that they are valid under applicable law.  If additional permissions&lt;br/&gt;apply only to part of the Program, that part may be used separately&lt;br/&gt;under those permissions, but the entire Program remains governed by&lt;br/&gt;this License without regard to the additional permissions.&lt;br/&gt;&lt;br/&gt;  When you convey a copy of a covered work, you may at your option&lt;br/&gt;remove any additional permissions from that copy, or from any part of&lt;br/&gt;it.  (Additional permissions may be written to require their own&lt;br/&gt;removal in certain cases when you modify the work.)  You may place&lt;br/&gt;additional permissions on material, added by you to a covered work,&lt;br/&gt;for which you have or can give appropriate copyright permission.&lt;br/&gt;&lt;br/&gt;  Notwithstanding any other provision of this License, for material you&lt;br/&gt;add to a covered work, you may (if authorized by the copyright holders of&lt;br/&gt;that material) supplement the terms of this License with terms:&lt;br/&gt;&lt;br/&gt;    a) Disclaiming warranty or limiting liability differently from the&lt;br/&gt;    terms of sections 15 and 16 of this License; or&lt;br/&gt;&lt;br/&gt;    b) Requiring preservation of specified reasonable legal notices or&lt;br/&gt;    author attributions in that material or in the Appropriate Legal&lt;br/&gt;    Notices displayed by works containing it; or&lt;br/&gt;&lt;br/&gt;    c) Prohibiting misrepresentation of the origin of that material, or&lt;br/&gt;    requiring that modified versions of such material be marked in&lt;br/&gt;    reasonable ways as different from the original version; or&lt;br/&gt;&lt;br/&gt;    d) Limiting the use for publicity purposes of names of licensors or&lt;br/&gt;    authors of the material; or&lt;br/&gt;&lt;br/&gt;    e) Declining to grant rights under trademark law for use of some&lt;br/&gt;    trade names, trademarks, or service marks; or&lt;br/&gt;&lt;br/&gt;    f) Requiring indemnification of licensors and authors of that&lt;br/&gt;    material by anyone who conveys the material (or modified versions of&lt;br/&gt;    it) with contractual assumptions of liability to the recipient, for&lt;br/&gt;    any liability that these contractual assumptions directly impose on&lt;br/&gt;    those licensors and authors.&lt;br/&gt;&lt;br/&gt;  All other non-permissive additional terms are considered &amp;#34;further&lt;br/&gt;restrictions&amp;#34; within the meaning of section 10.  If the Program as you&lt;br/&gt;received it, or any part of it, contains a notice stating that it is&lt;br/&gt;governed by this License along with a term that is a further&lt;br/&gt;restriction, you may remove that term.  If a license document contains&lt;br/&gt;a further restriction but permits relicensing or conveying under this&lt;br/&gt;License, you may add to a covered work material governed by the terms&lt;br/&gt;of that license document, provided that the further restriction does&lt;br/&gt;not survive such relicensing or conveying.&lt;br/&gt;&lt;br/&gt;  If you add terms to a covered work in accord with this section, you&lt;br/&gt;must place, in the relevant source files, a statement of the&lt;br/&gt;additional terms that apply to those files, or a notice indicating&lt;br/&gt;where to find the applicable terms.&lt;br/&gt;&lt;br/&gt;  Additional terms, permissive or non-permissive, may be stated in the&lt;br/&gt;form of a separately written license, or stated as exceptions;&lt;br/&gt;the above requirements apply either way.&lt;br/&gt;&lt;br/&gt;  8. Termination.&lt;br/&gt;&lt;br/&gt;  You may not propagate or modify a covered work except as expressly&lt;br/&gt;provided under this License.  Any attempt otherwise to propagate or&lt;br/&gt;modify it is void, and will automatically terminate your rights under&lt;br/&gt;this License (including any patent licenses granted under the third&lt;br/&gt;paragraph of section 11).&lt;br/&gt;&lt;br/&gt;  However, if you cease all violation of this License, then your&lt;br/&gt;license from a particular copyright holder is reinstated (a)&lt;br/&gt;provisionally, unless and until the copyright holder explicitly and&lt;br/&gt;finally terminates your license, and (b) permanently, if the copyright&lt;br/&gt;holder fails to notify you of the violation by some reasonable means&lt;br/&gt;prior to 60 days after the cessation.&lt;br/&gt;&lt;br/&gt;  Moreover, your license from a particular copyright holder is&lt;br/&gt;reinstated permanently if the copyright holder notifies you of the&lt;br/&gt;violation by some reasonable means, this is the first time you have&lt;br/&gt;received notice of violation of this License (for any work) from that&lt;br/&gt;copyright holder, and you cure the violation prior to 30 days after&lt;br/&gt;your receipt of the notice.&lt;br/&gt;&lt;br/&gt;  Termination of your rights under this section does not terminate the&lt;br/&gt;licenses of parties who have received copies or rights from you under&lt;br/&gt;this License.  If your rights have been terminated and not permanently&lt;br/&gt;reinstated, you do not qualify to receive new licenses for the same&lt;br/&gt;material under section 10.&lt;br/&gt;&lt;br/&gt;  9. Acceptance Not Required for Having Copies.&lt;br/&gt;&lt;br/&gt;  You are not required to accept this License in order to receive or&lt;br/&gt;run a copy of the Program.  Ancillary propagation of a covered work&lt;br/&gt;occurring solely as a consequence of using peer-to-peer transmission&lt;br/&gt;to receive a copy likewise does not require acceptance.  However,&lt;br/&gt;nothing other than this License grants you permission to propagate or&lt;br/&gt;modify any covered work.  These actions infringe copyright if you do&lt;br/&gt;not accept this License.  Therefore, by modifying or propagating a&lt;br/&gt;covered work, you indicate your acceptance of this License to do so.&lt;br/&gt;&lt;br/&gt;  10. Automatic Licensing of Downstream Recipients.&lt;br/&gt;&lt;br/&gt;  Each time you convey a covered work, the recipient automatically&lt;br/&gt;receives a license from the original licensors, to run, modify and&lt;br/&gt;propagate that work, subject to this License.  You are not responsible&lt;br/&gt;for enforcing compliance by third parties with this License.&lt;br/&gt;&lt;br/&gt;  An &amp;#34;entity transaction&amp;#34; is a transaction transferring control of an&lt;br/&gt;organization, or substantially all assets of one, or subdividing an&lt;br/&gt;organization, or merging organizations.  If propagation of a covered&lt;br/&gt;work results from an entity transaction, each party to that&lt;br/&gt;transaction who receives a copy of the work also receives whatever&lt;br/&gt;licenses to the work the party&amp;#39;s predecessor in interest had or could&lt;br/&gt;give under the previous paragraph, plus a right to possession of the&lt;br/&gt;Corresponding Source of the work from the predecessor in interest, if&lt;br/&gt;the predecessor has it or can get it with reasonable efforts.&lt;br/&gt;&lt;br/&gt;  You may not impose any further restrictions on the exercise of the&lt;br/&gt;rights granted or affirmed under this License.  For example, you may&lt;br/&gt;not impose a license fee, royalty, or other charge for exercise of&lt;br/&gt;rights granted under this License, and you may not initiate litigation&lt;br/&gt;(including a cross-claim or counterclaim in a lawsuit) alleging that&lt;br/&gt;any patent claim is infringed by making, using, selling, offering for&lt;br/&gt;sale, or importing the Program or any portion of it.&lt;br/&gt;&lt;br/&gt;  11. Patents.&lt;br/&gt;&lt;br/&gt;  A &amp;#34;contributor&amp;#34; is a copyright holder who authorizes use under this&lt;br/&gt;License of the Program or a work on which the Program is based.  The&lt;br/&gt;work thus licensed is called the contributor&amp;#39;s &amp;#34;contributor version&amp;#34;.&lt;br/&gt;&lt;br/&gt;  A contributor&amp;#39;s &amp;#34;essential patent claims&amp;#34; are all patent claims&lt;br/&gt;owned or controlled by the contributor, whether already acquired or&lt;br/&gt;hereafter acquired, that would be infringed by some manner, permitted&lt;br/&gt;by this License, of making, using, or selling its contributor version,&lt;br/&gt;but do not include claims that would be infringed only as a&lt;br/&gt;consequence of further modification of the contributor version.  For&lt;br/&gt;purposes of this definition, &amp;#34;control&amp;#34; includes the right to grant&lt;br/&gt;patent sublicenses in a manner consistent with the requirements of&lt;br/&gt;this License.&lt;br/&gt;&lt;br/&gt;  Each contributor grants you a non-exclusive, worldwide, royalty-free&lt;br/&gt;patent license under the contributor&amp;#39;s essential patent claims, to&lt;br/&gt;make, use, sell, offer for sale, import and otherwise run, modify and&lt;br/&gt;propagate the contents of its contributor version.&lt;br/&gt;&lt;br/&gt;  In the following three paragraphs, a &amp;#34;patent license&amp;#34; is any express&lt;br/&gt;agreement or commitment, however denominated, not to enforce a patent&lt;br/&gt;(such as an express permission to practice a patent or covenant not to&lt;br/&gt;sue for patent infringement).  To &amp;#34;grant&amp;#34; such a patent license to a&lt;br/&gt;party means to make such an agreement or commitment not to enforce a&lt;br/&gt;patent against the party.&lt;br/&gt;&lt;br/&gt;  If you convey a covered work, knowingly relying on a patent license,&lt;br/&gt;and the Corresponding Source of the work is not available for anyone&lt;br/&gt;to copy, free of charge and under the terms of this License, through a&lt;br/&gt;publicly available network server or other readily accessible means,&lt;br/&gt;then you must either (1) cause the Corresponding Source to be so&lt;br/&gt;available, or (2) arrange to deprive yourself of the benefit of the&lt;br/&gt;patent license for this particular work, or (3) arrange, in a manner&lt;br/&gt;consistent with the requirements of this License, to extend the patent&lt;br/&gt;license to downstream recipients.  &amp;#34;Knowingly relying&amp;#34; means you have&lt;br/&gt;actual knowledge that, but for the patent license, your conveying the&lt;br/&gt;covered work in a country, or your recipient&amp;#39;s use of the covered work&lt;br/&gt;in a country, would infringe one or more identifiable patents in that&lt;br/&gt;country that you have reason to believe are valid.&lt;br/&gt;&lt;br/&gt;  If, pursuant to or in connection with a single transaction or&lt;br/&gt;arrangement, you convey, or propagate by procuring conveyance of, a&lt;br/&gt;covered work, and grant a patent license to some of the parties&lt;br/&gt;receiving the covered work authorizing them to use, propagate, modify&lt;br/&gt;or convey a specific copy of the covered work, then the patent license&lt;br/&gt;you grant is automatically extended to all recipients of the covered&lt;br/&gt;work and works based on it.&lt;br/&gt;&lt;br/&gt;  A patent license is &amp;#34;discriminatory&amp;#34; if it does not include within&lt;br/&gt;the scope of its coverage, prohibits the exercise of, or is&lt;br/&gt;conditioned on the non-exercise of one or more of the rights that are&lt;br/&gt;specifically granted under this License.  You may not convey a covered&lt;br/&gt;work if you are a party to an arrangement with a third party that is&lt;br/&gt;in the business of distributing software, under which you make payment&lt;br/&gt;to the third party based on the extent of your activity of conveying&lt;br/&gt;the work, and under which the third party grants, to any of the&lt;br/&gt;parties who would receive the covered work from you, a discriminatory&lt;br/&gt;patent license (a) in connection with copies of the covered work&lt;br/&gt;conveyed by you (or copies made from those copies), or (b) primarily&lt;br/&gt;for and in connection with specific products or compilations that&lt;br/&gt;contain the covered work, unless you entered into that arrangement,&lt;br/&gt;or that patent license was granted, prior to 28 March 2007.&lt;br/&gt;&lt;br/&gt;  Nothing in this License shall be construed as excluding or limiting&lt;br/&gt;any implied license or other defenses to infringement that may&lt;br/&gt;otherwise be available to you under applicable patent law.&lt;br/&gt;&lt;br/&gt;  12. No Surrender of Others&amp;#39; Freedom.&lt;br/&gt;&lt;br/&gt;  If conditions are imposed on you (whether by court order, agreement or&lt;br/&gt;otherwise) that contradict the conditions of this License, they do not&lt;br/&gt;excuse you from the conditions of this License.  If you cannot convey a&lt;br/&gt;covered work so as to satisfy simultaneously your obligations under this&lt;br/&gt;License and any other pertinent obligations, then as a consequence you may&lt;br/&gt;not convey it at all.  For example, if you agree to terms that obligate you&lt;br/&gt;to collect a royalty for further conveying from those to whom you convey&lt;br/&gt;the Program, the only way you could satisfy both those terms and this&lt;br/&gt;License would be to refrain entirely from conveying the Program.&lt;br/&gt;&lt;br/&gt;  13. Remote Network Interaction; Use with the GNU General Public License.&lt;br/&gt;&lt;br/&gt;  Notwithstanding any other provision of this License, if you modify the&lt;br/&gt;Program, your modified version must prominently offer all users&lt;br/&gt;interacting with it remotely through a computer network (if your version&lt;br/&gt;supports such interaction) an opportunity to receive the Corresponding&lt;br/&gt;Source of your version by providing access to the Corresponding Source&lt;br/&gt;from a network server at no charge, through some standard or customary&lt;br/&gt;means of facilitating copying of software.  This Corresponding Source&lt;br/&gt;shall include the Corresponding Source for any work covered by version 3&lt;br/&gt;of the GNU General Public License that is incorporated pursuant to the&lt;br/&gt;following paragraph.&lt;br/&gt;&lt;br/&gt;  Notwithstanding any other provision of this License, you have&lt;br/&gt;permission to link or combine any covered work with a work licensed&lt;br/&gt;under version 3 of the GNU General Public License into a single&lt;br/&gt;combined work, and to convey the resulting work.  The terms of this&lt;br/&gt;License will continue to apply to the part which is the covered work,&lt;br/&gt;but the work with which it is combined will remain governed by version&lt;br/&gt;3 of the GNU General Public License.&lt;br/&gt;&lt;br/&gt;  14. Revised Versions of this License.&lt;br/&gt;&lt;br/&gt;  The Free Software Foundation may publish revised and/or new versions of&lt;br/&gt;the GNU Affero General Public License from time to time.  Such new versions&lt;br/&gt;will be similar in spirit to the present version, but may differ in detail to&lt;br/&gt;address new problems or concerns.&lt;br/&gt;&lt;br/&gt;  Each version is given a distinguishing version number.  If the&lt;br/&gt;Program specifies that a certain numbered version of the GNU Affero General&lt;br/&gt;Public License &amp;#34;or any later version&amp;#34; applies to it, you have the&lt;br/&gt;option of following the terms and conditions either of that numbered&lt;br/&gt;version or of any later version published by the Free Software&lt;br/&gt;Foundation.  If the Program does not specify a version number of the&lt;br/&gt;GNU Affero General Public License, you may choose any version ever published&lt;br/&gt;by the Free Software Foundation.&lt;br/&gt;&lt;br/&gt;  If the Program specifies that a proxy can decide which future&lt;br/&gt;versions of the GNU Affero General Public License can be used, that proxy&amp;#39;s&lt;br/&gt;public statement of acceptance of a version permanently authorizes you&lt;br/&gt;to choose that version for the Program.&lt;br/&gt;&lt;br/&gt;  Later license versions may give you additional or different&lt;br/&gt;permissions.  However, no additional obligations are imposed on any&lt;br/&gt;author or copyright holder as a result of your choosing to follow a&lt;br/&gt;later version.&lt;br/&gt;&lt;br/&gt;  15. Disclaimer of Warranty.&lt;br/&gt;&lt;br/&gt;  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY&lt;br/&gt;APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT&lt;br/&gt;HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM &amp;#34;AS IS&amp;#34; WITHOUT WARRANTY&lt;br/&gt;OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,&lt;br/&gt;THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR&lt;br/&gt;PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM&lt;br/&gt;IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF&lt;br/&gt;ALL NECESSARY SERVICING, REPAIR OR CORRECTION.&lt;br/&gt;&lt;br/&gt;  16. Limitation of Liability.&lt;br/&gt;&lt;br/&gt;  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING&lt;br/&gt;WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS&lt;br/&gt;THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY&lt;br/&gt;GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE&lt;br/&gt;USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF&lt;br/&gt;DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD&lt;br/&gt;PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),&lt;br/&gt;EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF&lt;br/&gt;SUCH DAMAGES.&lt;br/&gt;&lt;br/&gt;  17. Interpretation of Sections 15 and 16.&lt;br/&gt;&lt;br/&gt;  If the disclaimer of warranty and limitation of liability provided&lt;br/&gt;above cannot be given local legal effect according to their terms,&lt;br/&gt;reviewing courts shall apply local law that most closely approximates&lt;br/&gt;an absolute waiver of all civil liability in connection with the&lt;br/&gt;Program, unless a warranty or assumption of liability accompanies a&lt;br/&gt;copy of the Program in return for a fee.&lt;br/&gt;&lt;br/&gt;                     END OF TERMS AND CONDITIONS&lt;br/&gt;&lt;br/&gt;            How to Apply These Terms to Your New Programs&lt;br/&gt;&lt;br/&gt;  If you develop a new program, and you want it to be of the greatest&lt;br/&gt;possible use to the public, the best way to achieve this is to make it&lt;br/&gt;free software which everyone can redistribute and change under these terms.&lt;br/&gt;&lt;br/&gt;  To do so, attach the following notices to the program.  It is safest&lt;br/&gt;to attach them to the start of each source file to most effectively&lt;br/&gt;state the exclusion of warranty; and each file should have at least&lt;br/&gt;the &amp;#34;copyright&amp;#34; line and a pointer to where the full notice is found.&lt;br/&gt;&lt;br/&gt;    &amp;lt;one line to give the program&amp;#39;s name and a brief idea of what it does.&amp;gt;&lt;br/&gt;    Copyright (C) 2023  &amp;lt;name of author&amp;gt;&lt;br/&gt;&lt;br/&gt;    This program is free software: you can redistribute it and/or modify&lt;br/&gt;    it under the terms of the GNU Affero General Public License as published&lt;br/&gt;    by the Free Software Foundation, either version 3 of the License, or&lt;br/&gt;    (at your option) any later version.&lt;br/&gt;&lt;br/&gt;    This program is distributed in the hope that it will be useful,&lt;br/&gt;    but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br/&gt;    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br/&gt;    GNU Affero General Public License for more details.&lt;br/&gt;&lt;br/&gt;    You should have received a copy of the GNU Affero General Public License&lt;br/&gt;    along with this program. If not, see &amp;lt;&lt;a href=&#34;https://www.gnu.org/licenses/&amp;gt&#34;&gt;https://www.gnu.org/licenses/&amp;gt&lt;/a&gt;;.&lt;br/&gt;&lt;br/&gt;Also add information on how to contact you by electronic and paper mail.&lt;br/&gt;&lt;br/&gt;  If your software can interact with users remotely through a computer&lt;br/&gt;network, you should also make sure that it provides a way for users to&lt;br/&gt;get its source.  For example, if your program is a web application, its&lt;br/&gt;interface could display a &amp;#34;Source&amp;#34; link that leads users to an archive&lt;br/&gt;of the code.  There are many ways you could offer source, and different&lt;br/&gt;solutions will be better for different programs; see section 13 for the&lt;br/&gt;specific requirements.&lt;br/&gt;&lt;br/&gt;  You should also get your employer (if you work as a programmer) or school,&lt;br/&gt;if any, to sign a &amp;#34;copyright disclaimer&amp;#34; for the program, if necessary.&lt;br/&gt;For more information on this, and how to apply and follow the GNU AGPL, see&lt;br/&gt;&amp;lt;&lt;a href=&#34;https://www.gnu.org/licenses/&amp;gt&#34;&gt;https://www.gnu.org/licenses/&amp;gt&lt;/a&gt;;.&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:32:26&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsxvs50muuxspxsqnpfkq7t2fyqmtuu9qdcvenlq9cyehu3c6vnrcqzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86mrphj7</id>
    
      <title type="html">[package] name = &amp;#34;n34-relay&amp;#34; description = &amp;#34;A nostr ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsxvs50muuxspxsqnpfkq7t2fyqmtuu9qdcvenlq9cyehu3c6vnrcqzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86mrphj7" />
    <content type="html">
      [package]&lt;br/&gt;name         = &amp;#34;n34-relay&amp;#34;&lt;br/&gt;description  = &amp;#34;A nostr GRASP relay implementation&amp;#34;&lt;br/&gt;version      = &amp;#34;0.1.0&amp;#34;&lt;br/&gt;edition      = &amp;#34;2024&amp;#34;&lt;br/&gt;license      = &amp;#34;AGPL-3.0-or-later&amp;#34;&lt;br/&gt;authors      = [&amp;#34;Awiteb &amp;lt;a@4rs.nl&amp;gt;&amp;#34;]&lt;br/&gt;readme       = &amp;#34;README.md&amp;#34;&lt;br/&gt;repository   = &amp;#34;&lt;a href=&#34;https://github.com/gnostr-org/get_file_hash.git&amp;#34&#34;&gt;https://github.com/gnostr-org/get_file_hash.git&amp;#34&lt;/a&gt;;&lt;br/&gt;documentation = &amp;#34;&lt;a href=&#34;https://relay.n34.dev/docs.html&amp;#34&#34;&gt;https://relay.n34.dev/docs.html&amp;#34&lt;/a&gt;;&lt;br/&gt;homepage      = &amp;#34;&lt;a href=&#34;https://relay.n34.dev&amp;#34&#34;&gt;https://relay.n34.dev&amp;#34&lt;/a&gt;;&lt;br/&gt;keywords     = [&amp;#34;nostr&amp;#34;, &amp;#34;NIP-34&amp;#34;, &amp;#34;GRASP&amp;#34;]&lt;br/&gt;rust-version = &amp;#34;1.88.0&amp;#34;&lt;br/&gt;&lt;br/&gt;[package.metadata.wix]&lt;br/&gt;upgrade-guid = &amp;#34;036A2A4F-DA54-4FE2-B2D8-8C58D5814874&amp;#34;&lt;br/&gt;path-guid = &amp;#34;97D3207D-71DB-4DD0-B548-E43E8C664B7D&amp;#34;&lt;br/&gt;license = false&lt;br/&gt;eula = false&lt;br/&gt;&lt;br/&gt;documentation = &amp;#34;&lt;a href=&#34;https://relay.n34.dev/docs.html&amp;#34&#34;&gt;https://relay.n34.dev/docs.html&amp;#34&lt;/a&gt;;&lt;br/&gt;homepage      = &amp;#34;&lt;a href=&#34;https://relay.n34.dev&amp;#34&#34;&gt;https://relay.n34.dev&amp;#34&lt;/a&gt;;&lt;br/&gt;&lt;br/&gt;[[bin]]&lt;br/&gt;name = &amp;#34;n34-relay&amp;#34;&lt;br/&gt;path = &amp;#34;src/main.rs&amp;#34;&lt;br/&gt;&lt;br/&gt;[dependencies]&lt;br/&gt;rhai = { version = &amp;#34;1.23.4&amp;#34;, features = [&lt;br/&gt;  &amp;#34;no_position&amp;#34;,&lt;br/&gt;  &amp;#34;sync&amp;#34;,&lt;br/&gt;  &amp;#34;serde&amp;#34;,&lt;br/&gt;  &amp;#34;decimal&amp;#34;,&lt;br/&gt;] }&lt;br/&gt;tokio = { version = &amp;#34;1.47.1&amp;#34;, features = [&lt;br/&gt;  &amp;#34;macros&amp;#34;,&lt;br/&gt;  &amp;#34;rt-multi-thread&amp;#34;,&lt;br/&gt;  &amp;#34;signal&amp;#34;,&lt;br/&gt;  &amp;#34;fs&amp;#34;,&lt;br/&gt;  &amp;#34;process&amp;#34;,&lt;br/&gt;] }&lt;br/&gt;tonic = { version = &amp;#34;0.14.2&amp;#34;, features = [&lt;br/&gt;  &amp;#34;tls-ring&amp;#34;,&lt;br/&gt;  &amp;#34;tls-webpki-roots&amp;#34;,&lt;br/&gt;  &amp;#34;gzip&amp;#34;,&lt;br/&gt;  &amp;#34;deflate&amp;#34;,&lt;br/&gt;] }&lt;br/&gt;tower-http = { version = &amp;#34;0.6.6&amp;#34;, features = [&lt;br/&gt;  &amp;#34;cors&amp;#34;,&lt;br/&gt;  &amp;#34;decompression-br&amp;#34;,&lt;br/&gt;  &amp;#34;decompression-deflate&amp;#34;,&lt;br/&gt;  &amp;#34;decompression-gzip&amp;#34;,&lt;br/&gt;  &amp;#34;decompression-zstd&amp;#34;,&lt;br/&gt;  &amp;#34;trace&amp;#34;,&lt;br/&gt;  &amp;#34;timeout&amp;#34;,&lt;br/&gt;] }&lt;br/&gt;&lt;br/&gt;axum               = { version = &amp;#34;0.8.6&amp;#34;, features = [&amp;#34;http2&amp;#34;, &amp;#34;ws&amp;#34;] }&lt;br/&gt;base64             = &amp;#34;0.22.1&amp;#34;&lt;br/&gt;chrono             = &amp;#34;0.4.42&amp;#34;&lt;br/&gt;config             = { version = &amp;#34;0.15.15&amp;#34;, default-features = false, features = [&amp;#34;toml&amp;#34;] }&lt;br/&gt;const_format       = &amp;#34;0.2.34&amp;#34;&lt;br/&gt;convert_case       = &amp;#34;0.8.0&amp;#34;&lt;br/&gt;easy-ext           = &amp;#34;1.0.2&amp;#34;&lt;br/&gt;either             = &amp;#34;1.15.0&amp;#34;&lt;br/&gt;flume              = &amp;#34;0.11.1&amp;#34;&lt;br/&gt;futures            = &amp;#34;0.3.31&amp;#34;&lt;br/&gt;hyper              = &amp;#34;1.7.0&amp;#34;&lt;br/&gt;hyper-util         = &amp;#34;0.1.17&amp;#34;&lt;br/&gt;parking_lot        = { version = &amp;#34;0.12.5&amp;#34;, features = [&amp;#34;serde&amp;#34;] }&lt;br/&gt;prost              = &amp;#34;0.14.1&amp;#34;&lt;br/&gt;serde              = { version = &amp;#34;1.0.219&amp;#34;, features = [&amp;#34;rc&amp;#34;] }&lt;br/&gt;serde_json         = &amp;#34;1.0.145&amp;#34;&lt;br/&gt;serde_with         = &amp;#34;3.15.0&amp;#34;&lt;br/&gt;sha1               = &amp;#34;0.10.6&amp;#34;&lt;br/&gt;sha2               = &amp;#34;0.10.9&amp;#34;&lt;br/&gt;strum              = { version = &amp;#34;0.27.2&amp;#34;, features = [&amp;#34;derive&amp;#34;] }&lt;br/&gt;thiserror          = &amp;#34;2.0.16&amp;#34;&lt;br/&gt;tokio-util         = { version = &amp;#34;0.7.17&amp;#34;, features = [&amp;#34;io&amp;#34;] }&lt;br/&gt;toml               = &amp;#34;0.9.5&amp;#34;&lt;br/&gt;tonic-prost        = &amp;#34;0.14.2&amp;#34;&lt;br/&gt;tower              = { version = &amp;#34;0.5.2&amp;#34;, features = [&amp;#34;limit&amp;#34;] }&lt;br/&gt;tracing            = &amp;#34;0.1.41&amp;#34;&lt;br/&gt;tracing-subscriber = { version = &amp;#34;0.3.20&amp;#34;, features = [&amp;#34;env-filter&amp;#34;] }&lt;br/&gt;dirs = &amp;#34;6.0.0&amp;#34;&lt;br/&gt;&lt;br/&gt;  # We frequently switch between stable and unstable versions; this will make the&lt;br/&gt;  # process easier.&lt;br/&gt;  [dependencies.nostr]&lt;br/&gt;  default-features = false&lt;br/&gt;  features         = [&amp;#34;std&amp;#34;]&lt;br/&gt;  git              = &amp;#34;&lt;a href=&#34;https://git.4rs.nl/mirrors/nostr.git&amp;#34&#34;&gt;https://git.4rs.nl/mirrors/nostr.git&amp;#34&lt;/a&gt;;&lt;br/&gt;  rev              = &amp;#34;27a1947d3&amp;#34;&lt;br/&gt;  # version          = &amp;#34;0.45.0&amp;#34;&lt;br/&gt;  [dependencies.nostr-database]&lt;br/&gt;  default-features = false&lt;br/&gt;  git              = &amp;#34;&lt;a href=&#34;https://git.4rs.nl/mirrors/nostr.git&amp;#34&#34;&gt;https://git.4rs.nl/mirrors/nostr.git&amp;#34&lt;/a&gt;;&lt;br/&gt;  rev              = &amp;#34;27a1947d3&amp;#34;&lt;br/&gt;  # version          = &amp;#34;0.45.0&amp;#34;&lt;br/&gt;  [dependencies.nostr-lmdb]&lt;br/&gt;  default-features = false&lt;br/&gt;  git              = &amp;#34;&lt;a href=&#34;https://git.4rs.nl/mirrors/nostr.git&amp;#34&#34;&gt;https://git.4rs.nl/mirrors/nostr.git&amp;#34&lt;/a&gt;;&lt;br/&gt;  rev              = &amp;#34;27a1947d3&amp;#34;&lt;br/&gt;  # version          = &amp;#34;0.45.0&amp;#34;&lt;br/&gt;  [dependencies.nostr-relay-builder]&lt;br/&gt;  default-features = false&lt;br/&gt;  git              = &amp;#34;&lt;a href=&#34;https://git.4rs.nl/mirrors/nostr.git&amp;#34&#34;&gt;https://git.4rs.nl/mirrors/nostr.git&amp;#34&lt;/a&gt;;&lt;br/&gt;  rev              = &amp;#34;27a1947d3&amp;#34;&lt;br/&gt;  # version          = &amp;#34;0.45.0&amp;#34;&lt;br/&gt;&lt;br/&gt;[build-dependencies]&lt;br/&gt;tonic-prost-build = &amp;#34;0.14.2&amp;#34;&lt;br/&gt;&lt;br/&gt;# [profile.release]&lt;br/&gt;# lto       = &amp;#34;fat&amp;#34;&lt;br/&gt;# opt-level = 3&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:32:10&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqs8rs38pkth6m5km8k8sxut06rq305jj8lsl0plue39aztyvf7lftszyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86je9jq6</id>
    
      <title type="html">exclude = [&amp;#34;target/**/*.toml&amp;#34;, &amp;#34;Cargo.lock&amp;#34;] ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqs8rs38pkth6m5km8k8sxut06rq305jj8lsl0plue39aztyvf7lftszyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86je9jq6" />
    <content type="html">
      exclude = [&amp;#34;target/**/*.toml&amp;#34;, &amp;#34;Cargo.lock&amp;#34;]&lt;br/&gt;&lt;br/&gt;[formatting]&lt;br/&gt;align_entries = true&lt;br/&gt;indent_tables = true&lt;br/&gt;reorder_keys  = false&lt;br/&gt;&lt;br/&gt;[[rule]]&lt;br/&gt;include                 = [&amp;#34;**/Cargo.toml&amp;#34;]&lt;br/&gt;keys                    = [&amp;#34;dependencies&amp;#34;]&lt;br/&gt;formatting.reorder_keys = true&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:31:57&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqs866sqxc2gqzaqscdn0ymg5262k4trh3tjvedtp39nmney2vqq73czyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86r8zcnr</id>
    
      <title type="html">/lmdb /target /relay_base .rustc_info.json bin/CACHEDIR.TAG ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqs866sqxc2gqzaqscdn0ymg5262k4trh3tjvedtp39nmney2vqq73czyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86r8zcnr" />
    <content type="html">
      /lmdb&lt;br/&gt;/target&lt;br/&gt;/relay_base&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;.rustc_info.json&lt;br/&gt;bin/CACHEDIR.TAG&lt;br/&gt;bin/config.toml&lt;br/&gt;bin/debug/&lt;br/&gt;bin/lmdb/&lt;br/&gt;bin/logs.log&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:31:43&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsxkhksdhyuxkff03jj9r3ngv3efgccm8w47qt5xjmsxncx287gukqzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr860yreq7</id>
    
      <title type="html">#!/usr/bin/env sh N34_RELAY_BASE_DIR=./bin RUST_LOG=debug cargo ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsxkhksdhyuxkff03jj9r3ngv3efgccm8w47qt5xjmsxncx287gukqzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr860yreq7" />
    <content type="html">
      #!/usr/bin/env sh&lt;br/&gt;N34_RELAY_BASE_DIR=./bin RUST_LOG=debug cargo run -p n34-relay&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:31:29&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqswptu29z87rq7zm4hllyyy489y4dsxj2avflxv6nsuay9uvylvg6gzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86r4clkj</id>
    
      <title type="html">#[cfg(feature = &amp;#34;nostr&amp;#34;)] use frost_secp256k1_tr as ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqswptu29z87rq7zm4hllyyy489y4dsxj2avflxv6nsuay9uvylvg6gzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86r4clkj" />
    <content type="html">
      #[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use frost_secp256k1_tr as frost;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use rand::thread_rng;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use std::collections::BTreeMap;&lt;br/&gt;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;fn main() -&amp;gt; Result&amp;lt;(), Box&amp;lt;dyn std::error::Error&amp;gt;&amp;gt; {&lt;br/&gt;    let mut rng = thread_rng();&lt;br/&gt;    let max_signers = 3;&lt;br/&gt;    let min_signers = 2;&lt;br/&gt;&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    // Round 0: Key Generation (Trusted Dealer)&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    &lt;br/&gt;    // In a real P2P setup, you&amp;#39;d use Distributed Key Generation (DKG).&lt;br/&gt;    // For local testing/simulations, the trusted dealer is faster.&lt;br/&gt;    let (shares, pubkey_package) = frost::keys::generate_with_dealer(&lt;br/&gt;        max_signers,&lt;br/&gt;        min_signers,&lt;br/&gt;        frost::keys::IdentifierList::Default,&lt;br/&gt;        &amp;amp;mut rng,&lt;br/&gt;    )?;&lt;br/&gt;&lt;br/&gt;    // Verifying the public key exists&lt;br/&gt;    let group_public_key = pubkey_package.verifying_key();&lt;br/&gt;    println!(&amp;#34;Group Public Key: {:?}&amp;#34;, group_public_key);&lt;br/&gt;&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    // Round 1: Commitment&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    &lt;br/&gt;    let message = b&amp;#34;BIP-64MOD Consensus Proposal&amp;#34;;&lt;br/&gt;    let mut signing_commitments = BTreeMap::new();&lt;br/&gt;    let mut participant_nonces = BTreeMap::new();&lt;br/&gt;&lt;br/&gt;    // Participants 1 and 2 decide to sign&lt;br/&gt;    for i in 1..=min_signers {&lt;br/&gt;        let identifier = frost::Identifier::try_from(i as u16)?;&lt;br/&gt;        &lt;br/&gt;        // Generate nonces and commitments&lt;br/&gt;        let (nonces, commitments) = frost::round1::commit(&lt;br/&gt;            shares[&amp;amp;identifier].signing_share(),&lt;br/&gt;            &amp;amp;mut rng,&lt;br/&gt;        );&lt;br/&gt;        &lt;br/&gt;        signing_commitments.insert(identifier, commitments);&lt;br/&gt;        participant_nonces.insert(identifier, nonces);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    // Round 2: Signing&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    &lt;br/&gt;    let mut signature_shares = BTreeMap::new();&lt;br/&gt;    let signing_package = frost::SigningPackage::new(signing_commitments, message);&lt;br/&gt;&lt;br/&gt;    for i in 1..=min_signers {&lt;br/&gt;        let identifier = frost::Identifier::try_from(i as u16)?;&lt;br/&gt;        let nonces = &amp;amp;participant_nonces[&amp;amp;identifier];&lt;br/&gt;        &lt;br/&gt;        // Each participant produces a signature share&lt;br/&gt;        let key_package: frost::keys::KeyPackage = shares[&amp;amp;identifier].clone().try_into()?;&lt;br/&gt;        let share = frost::round2::sign(&amp;amp;signing_package, nonces, &amp;amp;key_package)?;&lt;br/&gt;        signature_shares.insert(identifier, share);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    // Finalization: Aggregation&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    &lt;br/&gt;    let group_signature = frost::aggregate(&lt;br/&gt;        &amp;amp;signing_package,&lt;br/&gt;        &amp;amp;signature_shares,&lt;br/&gt;        &amp;amp;pubkey_package,&lt;br/&gt;    )?;&lt;br/&gt;&lt;br/&gt;    // Verification&lt;br/&gt;    group_public_key.verify(message, &amp;amp;group_signature)?;&lt;br/&gt;    &lt;br/&gt;    println!(&amp;#34;Threshold signature verified successfully!&amp;#34;);&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example trusted-dealer --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:31:14&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqs8u7nmjdkcrt6cwkjsfklhkwt230ny4dju225nnqn75zaeknxl98szyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86hjfunt</id>
    
      <title type="html">#[cfg(feature = &amp;#34;nostr&amp;#34;)] use frost_secp256k1_tr as ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqs8u7nmjdkcrt6cwkjsfklhkwt230ny4dju225nnqn75zaeknxl98szyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86hjfunt" />
    <content type="html">
      #[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use frost_secp256k1_tr as frost;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use rand::thread_rng;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use std::collections::BTreeMap;&lt;br/&gt;&lt;br/&gt;/// A simplified ROAST Coordinator that manages signing sessions&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;struct RoastCoordinator {&lt;br/&gt;    min_signers: u16,&lt;br/&gt;    _message: Vec&amp;lt;u8&amp;gt;,&lt;br/&gt;    commitments: BTreeMap&amp;lt;frost::Identifier, frost::round1::SigningCommitments&amp;gt;,&lt;br/&gt;    nonces: BTreeMap&amp;lt;frost::Identifier, frost::round1::SigningNonces&amp;gt;,&lt;br/&gt;    shares: BTreeMap&amp;lt;frost::Identifier, frost::round2::SignatureShare&amp;gt;,&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;impl RoastCoordinator {&lt;br/&gt;    fn new(min_signers: u16, message: &amp;amp;[u8]) -&amp;gt; Self {&lt;br/&gt;        Self {&lt;br/&gt;            min_signers,&lt;br/&gt;            _message: message.to_vec(),&lt;br/&gt;            commitments: BTreeMap::new(),&lt;br/&gt;            nonces: BTreeMap::new(),&lt;br/&gt;            shares: BTreeMap::new(),&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// ROAST Logic: Collect commitments until we hit the threshold.&lt;br/&gt;    /// In a real P2P system, this would be an async stream handler.&lt;br/&gt;    fn add_commitment(&amp;amp;mut self, id: frost::Identifier, comms: frost::round1::SigningCommitments, nonces: frost::round1::SigningNonces) {&lt;br/&gt;        if self.commitments.len() &amp;lt; self.min_signers as usize {&lt;br/&gt;            self.commitments.insert(id, comms);&lt;br/&gt;            self.nonces.insert(id, nonces);&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    /// ROAST Logic: Collect signature shares.&lt;br/&gt;    fn add_share(&amp;amp;mut self, id: frost::Identifier, share: frost::round2::SignatureShare) {&lt;br/&gt;        if self.shares.len() &amp;lt; self.min_signers as usize {&lt;br/&gt;            self.shares.insert(id, share);&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    fn is_ready_to_sign(&amp;amp;self) -&amp;gt; bool {&lt;br/&gt;        self.commitments.len() &amp;gt;= self.min_signers as usize&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    fn is_ready_to_aggregate(&amp;amp;self) -&amp;gt; bool {&lt;br/&gt;        self.shares.len() &amp;gt;= self.min_signers as usize&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;fn main() -&amp;gt; Result&amp;lt;(), Box&amp;lt;dyn std::error::Error&amp;gt;&amp;gt; {&lt;br/&gt;    let mut rng = thread_rng();&lt;br/&gt;    let (max_signers, min_signers) = (5, 3);&lt;br/&gt;    let message = b&amp;#34;BIP-64MOD Context: ROAST Coordination&amp;#34;;&lt;br/&gt;&lt;br/&gt;    // 1. Setup: Generate keys (Dealer mode for simulation)&lt;br/&gt;    let (key_shares, pubkey_package) = frost::keys::generate_with_dealer(&lt;br/&gt;        max_signers,&lt;br/&gt;        min_signers,&lt;br/&gt;        frost::keys::IdentifierList::Default,&lt;br/&gt;        &amp;amp;mut rng,&lt;br/&gt;    )?;&lt;br/&gt;&lt;br/&gt;    let mut coordinator = RoastCoordinator::new(min_signers, message);&lt;br/&gt;&lt;br/&gt;    // 2. Round 1: Asynchronous Commitment Collection&lt;br/&gt;    // Simulate signers 1, 3, and 5 responding first (ROAST skips 2 and 4)&lt;br/&gt;    for &amp;amp;id_num in &amp;amp;[1, 3, 5] {&lt;br/&gt;        let id = frost::Identifier::try_from(id_num as u16)?;&lt;br/&gt;        let (nonces, comms) = frost::round1::commit(key_shares[&amp;amp;id].signing_share(), &amp;amp;mut rng);&lt;br/&gt;        &lt;br/&gt;        // Signers store their nonces locally, send comms to coordinator&lt;br/&gt;        coordinator.add_commitment(id, comms, nonces);&lt;br/&gt;        &lt;br/&gt;        // Note: Signer 2 was &amp;#34;offline&amp;#34;, but ROAST doesn&amp;#39;t care because we hit 3/5.&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    // 3. Round 2: Signing&lt;br/&gt;    if coordinator.is_ready_to_sign() {&lt;br/&gt;        let signing_package = frost::SigningPackage::new(coordinator.commitments.clone(), message);&lt;br/&gt;        &lt;br/&gt;        let mut temp_shares = BTreeMap::new();&lt;br/&gt;        for &amp;amp;id in coordinator.commitments.keys() {&lt;br/&gt;            // In reality, coordinator sends signing_package to signers&lt;br/&gt;            // Here we simulate the signers producing shares&lt;br/&gt;&lt;br/&gt;            let nonces = &amp;amp;coordinator.nonces[&amp;amp;id];&lt;br/&gt;            &lt;br/&gt;            let key_package: frost::keys::KeyPackage = key_shares[&amp;amp;id].clone().try_into()?;&lt;br/&gt;            let share = frost::round2::sign(&amp;amp;signing_package, &amp;amp;nonces, &amp;amp;key_package)?;&lt;br/&gt;            temp_shares.insert(id, share);&lt;br/&gt;        }&lt;br/&gt;        for (id, share) in temp_shares {&lt;br/&gt;            coordinator.add_share(id, share);&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    // 4. Finalization: Aggregation&lt;br/&gt;    if coordinator.is_ready_to_aggregate() {&lt;br/&gt;        let signing_package = frost::SigningPackage::new(coordinator.commitments.clone(), message);&lt;br/&gt;        let group_signature = frost::aggregate(&lt;br/&gt;            &amp;amp;signing_package,&lt;br/&gt;            &amp;amp;coordinator.shares,&lt;br/&gt;            &amp;amp;pubkey_package,&lt;br/&gt;        )?;&lt;br/&gt;&lt;br/&gt;        pubkey_package.verifying_key().verify(message, &amp;amp;group_signature)?;&lt;br/&gt;        println!(&amp;#34;ROAST-coordinated signature verified!&amp;#34;);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example roast-experiment --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:30:57&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqs28lx0vmedarf0sn82md3haxzjv9fp2m97mdakv85ll6qw22ha7cgzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86emxrea</id>
    
      <title type="html">#[tokio::main] #[cfg(feature = &amp;#34;nostr&amp;#34;)] ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqs28lx0vmedarf0sn82md3haxzjv9fp2m97mdakv85ll6qw22ha7cgzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86emxrea" />
    <content type="html">
      #[tokio::main]&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;#[allow(unused_imports)]&lt;br/&gt;async fn main() {&lt;br/&gt;    use get_file_hash_core::repository_announcement;&lt;br/&gt;    use get_file_hash_core::get_file_hash;&lt;br/&gt;    use nostr_sdk::Keys;&lt;br/&gt;    use sha2::{Digest, Sha256};&lt;br/&gt;    use nostr_sdk::EventId;&lt;br/&gt;    use std::str::FromStr;&lt;br/&gt;&lt;br/&gt;    let keys = Keys::generate();&lt;br/&gt;    let relay_urls = get_file_hash_core::get_relay_urls();&lt;br/&gt;    let project_name = &amp;#34;my-awesome-repo-example&amp;#34;;&lt;br/&gt;    let description = &amp;#34;A fantastic new project example.&amp;#34;;&lt;br/&gt;    let clone_url = &amp;#34;git@github.com:user/my-awesome-repo-example.git&amp;#34;;&lt;br/&gt;    &lt;br/&gt;    // Dummy EventId for examples that require a build_manifest_event_id&lt;br/&gt;    const DUMMY_BUILD_MANIFEST_ID_STR: &amp;amp;str = &amp;#34;f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0&amp;#34;;&lt;br/&gt;    let dummy_build_manifest_id = EventId::from_str(DUMMY_BUILD_MANIFEST_ID_STR).unwrap();&lt;br/&gt;&lt;br/&gt;    // Example 1: Without build_manifest_event_id&lt;br/&gt;    println!(&amp;#34;Publishing repository announcement without build_manifest_event_id...&amp;#34;);&lt;br/&gt;    repository_announcement!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        project_name,&lt;br/&gt;        description,&lt;br/&gt;        clone_url,&lt;br/&gt;        &amp;#34;../Cargo.toml&amp;#34; // Use a known file in your project&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;Repository announcement without build_manifest_event_id published.&amp;#34;);&lt;br/&gt;&lt;br/&gt;    // Example 2: With build_manifest_event_id&lt;br/&gt;    println!(&amp;#34;Publishing repository announcement with build_manifest_event_id...&amp;#34;);&lt;br/&gt;    repository_announcement!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        project_name,&lt;br/&gt;        description,&lt;br/&gt;        clone_url,&lt;br/&gt;        &amp;#34;../Cargo.toml&amp;#34;, // Use a known file in your project&lt;br/&gt;        Some(&amp;amp;dummy_build_manifest_id)&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;Repository announcement with build_manifest_event_id published.&amp;#34;);&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example repository_announcement --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:30:44&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqs0hrwk85dhcjfxlydtp2xa5w2awmh4jtk789exysluhegpuwduyrgzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86mf6vr6</id>
    
      <title type="html">#[tokio::main] #[cfg(feature = &amp;#34;nostr&amp;#34;)] async fn main() ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqs0hrwk85dhcjfxlydtp2xa5w2awmh4jtk789exysluhegpuwduyrgzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86mf6vr6" />
    <content type="html">
      #[tokio::main]&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;async fn main() {&lt;br/&gt;    use get_file_hash_core::publish_repository_state;&lt;br/&gt;    use nostr_sdk::Keys;&lt;br/&gt;&lt;br/&gt;    let keys = Keys::generate();&lt;br/&gt;    let relay_urls = get_file_hash_core::get_relay_urls();&lt;br/&gt;    let d_tag = &amp;#34;my-awesome-repo-example&amp;#34;;&lt;br/&gt;    let branch_name = &amp;#34;main&amp;#34;;&lt;br/&gt;    let commit_id = &amp;#34;a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0&amp;#34;;&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;Publishing repository state...&amp;#34;);&lt;br/&gt;    publish_repository_state!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        d_tag,&lt;br/&gt;        branch_name,&lt;br/&gt;        commit_id&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;Repository state published.&amp;#34;);&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example publish_repository_state --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:30:24&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqszqzjdrgpkx59mawuac9twr9awssjyc434amecpdr60jvg0raq9xgzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr864trgs3</id>
    
      <title type="html">#[tokio::main] #[cfg(feature = &amp;#34;nostr&amp;#34;)] async fn main() ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqszqzjdrgpkx59mawuac9twr9awssjyc434amecpdr60jvg0raq9xgzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr864trgs3" />
    <content type="html">
      #[tokio::main]&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;async fn main() {&lt;br/&gt;    use get_file_hash_core::publish_pull_request;&lt;br/&gt;    use nostr_sdk::Keys;&lt;br/&gt;    use nostr_sdk::EventId;&lt;br/&gt;    use std::str::FromStr;&lt;br/&gt;&lt;br/&gt;    let keys = Keys::generate();&lt;br/&gt;    let relay_urls = get_file_hash_core::get_relay_urls();&lt;br/&gt;    let d_tag = &amp;#34;my-awesome-repo-example&amp;#34;;&lt;br/&gt;    let commit_id = &amp;#34;0123456789abcdef0123456789abcdef01234567&amp;#34;;&lt;br/&gt;    let clone_url = &amp;#34;git@github.com:user/my-feature-branch.git&amp;#34;;&lt;br/&gt;    let title = Some(&amp;#34;Feat: Add new awesome feature example&amp;#34;);&lt;br/&gt;&lt;br/&gt;    // Dummy EventId for examples that require a build_manifest_event_id&lt;br/&gt;    const DUMMY_BUILD_MANIFEST_ID_STR: &amp;amp;str = &amp;#34;f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0&amp;#34;;&lt;br/&gt;    let dummy_build_manifest_id = EventId::from_str(DUMMY_BUILD_MANIFEST_ID_STR).unwrap();&lt;br/&gt;&lt;br/&gt;    // Example 1: Without title and build_manifest_event_id&lt;br/&gt;    println!(&amp;#34;Publishing pull request without title and build_manifest_event_id...&amp;#34;);&lt;br/&gt;    publish_pull_request!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        d_tag,&lt;br/&gt;        commit_id,&lt;br/&gt;        clone_url&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;Pull request without title and build_manifest_event_id published.&amp;#34;);&lt;br/&gt;&lt;br/&gt;    // Example 2: With title but without build_manifest_event_id&lt;br/&gt;    println!(&amp;#34;Publishing pull request with title but without build_manifest_event_id...&amp;#34;);&lt;br/&gt;    publish_pull_request!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        d_tag,&lt;br/&gt;        commit_id,&lt;br/&gt;        clone_url,&lt;br/&gt;        title&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;Pull request with title but without build_manifest_event_id published.&amp;#34;);&lt;br/&gt;&lt;br/&gt;    // Example 3: With build_manifest_event_id but without title&lt;br/&gt;    println!(&amp;#34;Publishing pull request with build_manifest_event_id but without title...&amp;#34;);&lt;br/&gt;    publish_pull_request!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        d_tag,&lt;br/&gt;        commit_id,&lt;br/&gt;        clone_url,&lt;br/&gt;        None, // Explicitly pass None for title&lt;br/&gt;        Some(&amp;amp;dummy_build_manifest_id)&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;Pull request with build_manifest_event_id but without title published.&amp;#34;);&lt;br/&gt;&lt;br/&gt;    // Example 4: With title and build_manifest_event_id&lt;br/&gt;    println!(&amp;#34;Publishing pull request with title and build_manifest_event_id...&amp;#34;);&lt;br/&gt;    publish_pull_request!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        d_tag,&lt;br/&gt;        commit_id,&lt;br/&gt;        clone_url,&lt;br/&gt;        title,&lt;br/&gt;        Some(&amp;amp;dummy_build_manifest_id)&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;Pull request with title and build_manifest_event_id published.&amp;#34;);&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example publish_pull_request --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:30:05&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsd3e26pgq7eexlh4p85u8llxcx7ttgakaqp8vamwndsjad6hgmanczyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr868cchsn</id>
    
      <title type="html">#[tokio::main] #[cfg(feature = &amp;#34;nostr&amp;#34;)] async fn main() ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsd3e26pgq7eexlh4p85u8llxcx7ttgakaqp8vamwndsjad6hgmanczyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr868cchsn" />
    <content type="html">
      #[tokio::main]&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;async fn main() {&lt;br/&gt;    use get_file_hash_core::publish_pr_update;&lt;br/&gt;    use nostr_sdk::Keys;&lt;br/&gt;    use nostr_sdk::EventId;&lt;br/&gt;    use std::str::FromStr;&lt;br/&gt;&lt;br/&gt;    let keys = Keys::generate();&lt;br/&gt;    let relay_urls = get_file_hash_core::get_relay_urls();&lt;br/&gt;    let d_tag = &amp;#34;my-awesome-repo-example&amp;#34;;&lt;br/&gt;    let pr_event_id = EventId::from_str(&amp;#34;f6e4d6a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9&amp;#34;).unwrap(); // Example PR Event ID&lt;br/&gt;    let updated_commit_id = &amp;#34;z9y8x7w6v5u4t3s2r1q0p9o8n7m6l5k4j3i2h1g0&amp;#34;;&lt;br/&gt;    let updated_clone_url = &amp;#34;git@github.com:user/my-feature-branch-v2.git&amp;#34;;&lt;br/&gt;&lt;br/&gt;    // Dummy EventId for examples that require a build_manifest_event_id&lt;br/&gt;    const DUMMY_BUILD_MANIFEST_ID_STR: &amp;amp;str = &amp;#34;f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0&amp;#34;;&lt;br/&gt;    let dummy_build_manifest_id = EventId::from_str(DUMMY_BUILD_MANIFEST_ID_STR).unwrap();&lt;br/&gt;&lt;br/&gt;    // Example 1: Without build_manifest_event_id&lt;br/&gt;    println!(&amp;#34;Publishing PR update without build_manifest_event_id...&amp;#34;);&lt;br/&gt;    publish_pr_update!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        d_tag,&lt;br/&gt;        &amp;amp;pr_event_id,&lt;br/&gt;        updated_commit_id,&lt;br/&gt;        updated_clone_url&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;PR update without build_manifest_event_id published.&amp;#34;);&lt;br/&gt;&lt;br/&gt;    // Example 2: With build_manifest_event_id&lt;br/&gt;    println!(&amp;#34;Publishing PR update with build_manifest_event_id...&amp;#34;);&lt;br/&gt;    publish_pr_update!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        d_tag,&lt;br/&gt;        &amp;amp;pr_event_id,&lt;br/&gt;        updated_commit_id,&lt;br/&gt;        updated_clone_url,&lt;br/&gt;        Some(&amp;amp;dummy_build_manifest_id)&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;PR update with build_manifest_event_id published.&amp;#34;);&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example publish_pr_update --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:29:49&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsql4pmqrlc4sdqjx5j5k99he07kp0056pylztdrunqchs4muakfuszyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86vd9x39</id>
    
      <title type="html">#[cfg(feature = &amp;#34;nostr&amp;#34;)] use ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsql4pmqrlc4sdqjx5j5k99he07kp0056pylztdrunqchs4muakfuszyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86vd9x39" />
    <content type="html">
      #[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use get_file_hash_core::{get_relay_urls, publish_patch, publish_metadata_event, DEFAULT_PICTURE_URL, DEFAULT_BANNER_URL};&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;#[tokio::main]&lt;br/&gt;async fn main() {&lt;br/&gt;    use nostr_sdk::Keys;&lt;br/&gt;    use nostr_sdk::EventId;&lt;br/&gt;    use std::str::FromStr;&lt;br/&gt;&lt;br/&gt;    let keys = Keys::generate();&lt;br/&gt;    let relay_urls = get_relay_urls();&lt;br/&gt;    let d_tag = &amp;#34;my-gnostr-repository-patch-with-metadata-example&amp;#34;; // Repository identifier&lt;br/&gt;    let commit_id = &amp;#34;f1e2d3c4b5a6f7e8d9c0b1a2f3e4d5c6b7a8f9e0&amp;#34;; // Example commit ID&lt;br/&gt;&lt;br/&gt;    // Metadata for NIP-01 event&lt;br/&gt;    let picture_url = DEFAULT_PICTURE_URL;&lt;br/&gt;    let banner_url = DEFAULT_BANNER_URL;&lt;br/&gt;    let metadata_file_path = &amp;#34;./README.md&amp;#34;; // Using README.md content for metadata&lt;br/&gt;&lt;br/&gt;    // Dummy EventId for examples that require a build_manifest_event_id&lt;br/&gt;    const DUMMY_BUILD_MANIFEST_ID_STR: &amp;amp;str = &amp;#34;f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0&amp;#34;;&lt;br/&gt;    let dummy_build_manifest_id = EventId::from_str(DUMMY_BUILD_MANIFEST_ID_STR).unwrap();&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;Publishing NIP-01 Metadata Event...&amp;#34;);&lt;br/&gt;    publish_metadata_event(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        picture_url,&lt;br/&gt;        banner_url,&lt;br/&gt;        metadata_file_path&lt;br/&gt;    ).await;&lt;br/&gt;    println!(&amp;#34;NIP-01 Metadata Event published.&amp;#34;);&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;&lt;br/&gt;Publishing NIP-34 Patch Event without build_manifest_event_id...&amp;#34;);&lt;br/&gt;    publish_patch!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        d_tag,&lt;br/&gt;        commit_id,&lt;br/&gt;        &amp;#34;../Cargo.toml&amp;#34; // Use an existing file for the patch content&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;NIP-34 Patch Event without build_manifest_event_id published.&amp;#34;);&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;&lt;br/&gt;Publishing NIP-34 Patch Event with build_manifest_event_id...&amp;#34;);&lt;br/&gt;    publish_patch!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        d_tag,&lt;br/&gt;        commit_id,&lt;br/&gt;        &amp;#34;../Cargo.toml&amp;#34;, // Use an existing file for the patch content&lt;br/&gt;        Some(&amp;amp;dummy_build_manifest_id)&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;NIP-34 Patch Event with build_manifest_event_id published.&amp;#34;);&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example publish_patch_with_metadata --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:29:35&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsg0agew49skauld5rsrt5p8fdx3zz3qfns55u5mx88a3luwudgz3gzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86hfqv4j</id>
    
      <title type="html">#[cfg(feature = &amp;#34;nostr&amp;#34;)] use ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsg0agew49skauld5rsrt5p8fdx3zz3qfns55u5mx88a3luwudgz3gzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86hfqv4j" />
    <content type="html">
      #[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use get_file_hash_core::{get_git_tracked_files, DEFAULT_GNOSTR_KEY, DEFAULT_PICTURE_URL, DEFAULT_BANNER_URL, publish_nostr_event_if_release, get_repo_announcement_event, publish_patch_event};&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;#[tokio::main]&lt;br/&gt;async fn main() {&lt;br/&gt;    use get_file_hash_core::publish_patch;&lt;br/&gt;    use nostr_sdk::Keys;&lt;br/&gt;    use nostr_sdk::EventId;&lt;br/&gt;    use std::str::FromStr;&lt;br/&gt;&lt;br/&gt;    let keys = Keys::generate();&lt;br/&gt;    let relay_urls = get_file_hash_core::get_relay_urls();&lt;br/&gt;    let d_tag = &amp;#34;my-awesome-repo-example&amp;#34;;&lt;br/&gt;    let commit_id = &amp;#34;a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0&amp;#34;; // Example commit ID&lt;br/&gt;&lt;br/&gt;    // Dummy EventId for examples that require a build_manifest_event_id&lt;br/&gt;    const DUMMY_BUILD_MANIFEST_ID_STR: &amp;amp;str = &amp;#34;f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0&amp;#34;;&lt;br/&gt;    let dummy_build_manifest_id = EventId::from_str(DUMMY_BUILD_MANIFEST_ID_STR).unwrap();&lt;br/&gt;&lt;br/&gt;    // Example 1: Without build_manifest_event_id&lt;br/&gt;    println!(&amp;#34;Publishing patch without build_manifest_event_id...&amp;#34;);&lt;br/&gt;    publish_patch!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        d_tag,&lt;br/&gt;        commit_id,&lt;br/&gt;        &amp;#34;../Cargo.toml&amp;#34; // Use an existing file for the patch content&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;Patch without build_manifest_event_id published.&amp;#34;);&lt;br/&gt;&lt;br/&gt;    // Example 2: With build_manifest_event_id&lt;br/&gt;    println!(&amp;#34;Publishing patch with build_manifest_event_id...&amp;#34;);&lt;br/&gt;    publish_patch!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        d_tag,&lt;br/&gt;        commit_id,&lt;br/&gt;        &amp;#34;../Cargo.toml&amp;#34;, // Use an existing file for the patch content&lt;br/&gt;        Some(&amp;amp;dummy_build_manifest_id)&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;Patch with build_manifest_event_id published.&amp;#34;);&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example publish_patch --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:29:19&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsf7l60k6j0cwuw7nfdhhcx2h5meah7nv24243lwjkjupsn6s8v8cqzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86pqaxf3</id>
    
      <title type="html">#[cfg(feature = &amp;#34;nostr&amp;#34;)] use ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsf7l60k6j0cwuw7nfdhhcx2h5meah7nv24243lwjkjupsn6s8v8cqzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86pqaxf3" />
    <content type="html">
      #[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use get_file_hash_core::{get_relay_urls, publish_issue, DEFAULT_GNOSTR_KEY, DEFAULT_PICTURE_URL, DEFAULT_BANNER_URL, publish_nostr_event_if_release, get_repo_announcement_event, publish_patch_event};&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;#[tokio::main]&lt;br/&gt;async fn main() {&lt;br/&gt;    use nostr_sdk::Keys;&lt;br/&gt;    use nostr_sdk::EventId;&lt;br/&gt;    use std::str::FromStr;&lt;br/&gt;&lt;br/&gt;    let keys = Keys::generate();&lt;br/&gt;    let relay_urls = get_relay_urls();&lt;br/&gt;    let d_tag = &amp;#34;my-gnostr-repository-issue-example&amp;#34;; // Repository identifier&lt;br/&gt;    let issue_id_1 = &amp;#34;issue-001&amp;#34;; // Unique identifier for the first issue&lt;br/&gt;    let issue_id_2 = &amp;#34;issue-002&amp;#34;; // Unique identifier for the second issue&lt;br/&gt;    let title_1 = &amp;#34;Bug: Application crashes on startup&amp;#34;;&lt;br/&gt;    let content_1 = &amp;#34;The application fails to launch on macOS Ventura. It throws a &amp;#39;Segmentation Fault&amp;#39; error immediately after execution. This was observed on version `v1.2.3`.&lt;br/&gt;&lt;br/&gt;Steps to reproduce:&lt;br/&gt;1. Download `app-v1.2.3-macos.tar.gz`&lt;br/&gt;2. Extract the archive&lt;br/&gt;3. Run `./app`&lt;br/&gt;&lt;br/&gt;Expected behavior: Application launches successfully.&lt;br/&gt;Actual behavior: Application crashes with &amp;#39;Segmentation Fault&amp;#39;.&amp;#34;;&lt;br/&gt;&lt;br/&gt;    let title_2 = &amp;#34;Feature Request: Dark Mode&amp;#34;;&lt;br/&gt;    let content_2 = &amp;#34;Users have requested a dark mode option to improve readability and reduce eye strain during prolonged use. This should be toggleable in the settings menu.&lt;br/&gt;&lt;br/&gt;Considerations:&lt;br/&gt;- Adherence to system dark mode settings.&lt;br/&gt;- Consistent styling across all UI components.&amp;#34;;&lt;br/&gt;&lt;br/&gt;    // Dummy EventId for examples that require a build_manifest_event_id&lt;br/&gt;    const DUMMY_BUILD_MANIFEST_ID_STR: &amp;amp;str = &amp;#34;f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0&amp;#34;;&lt;br/&gt;    let dummy_build_manifest_id = EventId::from_str(DUMMY_BUILD_MANIFEST_ID_STR).unwrap();&lt;br/&gt;&lt;br/&gt;    // Example 1: Publish an issue without build_manifest_event_id&lt;br/&gt;    println!(&amp;#34;Publishing issue &amp;#39;{}&amp;#39; without build_manifest_event_id...&amp;#34;, title_1);&lt;br/&gt;    publish_issue!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        d_tag,&lt;br/&gt;        issue_id_1,&lt;br/&gt;        title_1,&lt;br/&gt;        content_1&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;Issue &amp;#39;{}&amp;#39; published.&amp;#34;, title_1);&lt;br/&gt;&lt;br/&gt;    // Example 2: Publish an issue with build_manifest_event_id&lt;br/&gt;    println!(&amp;#34;Publishing issue &amp;#39;{}&amp;#39; with build_manifest_event_id...&amp;#34;, title_2);&lt;br/&gt;    publish_issue!(&lt;br/&gt;        &amp;amp;keys,&lt;br/&gt;        &amp;amp;relay_urls,&lt;br/&gt;        d_tag,&lt;br/&gt;        issue_id_2,&lt;br/&gt;        title_2,&lt;br/&gt;        content_2,&lt;br/&gt;        Some(&amp;amp;dummy_build_manifest_id)&lt;br/&gt;    );&lt;br/&gt;    println!(&amp;#34;Issue &amp;#39;{}&amp;#39; published.&amp;#34;, title_2);&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example publish_issue --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:28:59&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsgpymkxwwpqckp3e5zp60ysq9nwmyjwnfummzfcvn79u3z8dk95ggzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86wv4qu5</id>
    
      <title type="html">/// deterministic nostr event build example // deterministic ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsgpymkxwwpqckp3e5zp60ysq9nwmyjwnfummzfcvn79u3z8dk95ggzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86wv4qu5" />
    <content type="html">
      /// deterministic nostr event build example&lt;br/&gt;// deterministic nostr event build example&lt;br/&gt;use get_file_hash_core::get_file_hash;&lt;br/&gt;#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;use get_file_hash_core::{get_git_tracked_files, DEFAULT_GNOSTR_KEY, DEFAULT_PICTURE_URL, DEFAULT_BANNER_URL, publish_nostr_event_if_release, get_repo_announcement_event};&lt;br/&gt;#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;use nostr_sdk::{EventBuilder, Keys, Tag, SecretKey};&lt;br/&gt;#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;use std::fs;&lt;br/&gt;&lt;br/&gt;use std::path::PathBuf;&lt;br/&gt;use sha2::{Digest, Sha256};&lt;br/&gt;#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;use ::hex;&lt;br/&gt;&lt;br/&gt;#[tokio::main]&lt;br/&gt;async fn main() {&lt;br/&gt;    let manifest_dir = std::env::var(&amp;#34;CARGO_MANIFEST_DIR&amp;#34;).unwrap();&lt;br/&gt;    let is_git_repo = std::path::Path::new(&amp;amp;manifest_dir).join(&amp;#34;.git&amp;#34;).exists();&lt;br/&gt;    #[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;	#[allow(unused_mut)]&lt;br/&gt;    let mut git_branch_str = String::new();&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;cargo:rustc-env=CARGO_PKG_NAME={}&amp;#34;, env!(&amp;#34;CARGO_PKG_NAME&amp;#34;));&lt;br/&gt;    println!(&amp;#34;cargo:rustc-env=CARGO_PKG_VERSION={}&amp;#34;, env!(&amp;#34;CARGO_PKG_VERSION&amp;#34;));&lt;br/&gt;&lt;br/&gt;    if is_git_repo {&lt;br/&gt;        let git_commit_hash_output = std::process::Command::new(&amp;#34;git&amp;#34;)&lt;br/&gt;            .args(&amp;amp;[&amp;#34;rev-parse&amp;#34;, &amp;#34;HEAD&amp;#34;])&lt;br/&gt;            .stdout(std::process::Stdio::piped())&lt;br/&gt;            .stderr(std::process::Stdio::piped())&lt;br/&gt;            .output()&lt;br/&gt;            .expect(&amp;#34;Failed to execute git command for commit hash&amp;#34;);&lt;br/&gt;&lt;br/&gt;        let git_commit_hash_str = if git_commit_hash_output.status.success() &amp;amp;&amp;amp; !git_commit_hash_output.stdout.is_empty() {&lt;br/&gt;            String::from_utf8(git_commit_hash_output.stdout).unwrap().trim().to_string()&lt;br/&gt;        } else {&lt;br/&gt;            println!(&amp;#34;cargo:warning=Git commit hash command failed or returned empty. Status: {:?}, Stderr: {}&amp;#34;, &lt;br/&gt;                     git_commit_hash_output.status, String::from_utf8_lossy(&amp;amp;git_commit_hash_output.stderr));&lt;br/&gt;            String::new()&lt;br/&gt;        };&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=GIT_COMMIT_HASH={}&amp;#34;, git_commit_hash_str);&lt;br/&gt;&lt;br/&gt;        let git_branch_output = std::process::Command::new(&amp;#34;git&amp;#34;)&lt;br/&gt;            .args(&amp;amp;[&amp;#34;rev-parse&amp;#34;, &amp;#34;--abbrev-ref&amp;#34;, &amp;#34;HEAD&amp;#34;])&lt;br/&gt;            .stdout(std::process::Stdio::piped())&lt;br/&gt;            .stderr(std::process::Stdio::piped())&lt;br/&gt;            .output()&lt;br/&gt;            .expect(&amp;#34;Failed to execute git command for branch name&amp;#34;);&lt;br/&gt;&lt;br/&gt;        let git_branch_str = if git_branch_output.status.success() &amp;amp;&amp;amp; !git_branch_output.stdout.is_empty() {&lt;br/&gt;            String::from_utf8(git_branch_output.stdout).unwrap().trim().to_string()&lt;br/&gt;        } else {&lt;br/&gt;            println!(&amp;#34;cargo:warning=Git branch command failed or returned empty. Status: {:?}, Stderr: {}&amp;#34;, &lt;br/&gt;                     git_branch_output.status, String::from_utf8_lossy(&amp;amp;git_branch_output.stderr));&lt;br/&gt;            String::new()&lt;br/&gt;        };&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=GIT_BRANCH={}&amp;#34;, git_branch_str);&lt;br/&gt;    } else {&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=GIT_COMMIT_HASH=&amp;#34;);&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=GIT_BRANCH=&amp;#34;);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;cargo:rerun-if-changed=.git/HEAD&amp;#34;);&lt;br/&gt;&lt;br/&gt;    //#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;    //let relay_urls = get_file_hash_core::get_relay_urls();&lt;br/&gt;&lt;br/&gt;    let cargo_toml_hash = get_file_hash!(&amp;#34;../Cargo.toml&amp;#34;);&lt;br/&gt;    println!(&amp;#34;cargo:rustc-env=CARGO_TOML_HASH={}&amp;#34;, cargo_toml_hash);&lt;br/&gt;&lt;br/&gt;    let lib_hash = get_file_hash!(&amp;#34;../src/lib.rs&amp;#34;);&lt;br/&gt;    println!(&amp;#34;cargo:rustc-env=LIB_HASH={}&amp;#34;, lib_hash);&lt;br/&gt;&lt;br/&gt;    let build_hash = get_file_hash!(&amp;#34;../build.rs&amp;#34;);&lt;br/&gt;    println!(&amp;#34;cargo:rustc-env=BUILD_HASH={}&amp;#34;, build_hash);&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;cargo:rerun-if-changed=Cargo.toml&amp;#34;);&lt;br/&gt;    println!(&amp;#34;cargo:rerun-if-changed=src/lib.rs&amp;#34;);&lt;br/&gt;    println!(&amp;#34;cargo:rerun-if-changed=build.rs&amp;#34;);&lt;br/&gt;    let online_relays_csv_path = PathBuf::from(&amp;amp;manifest_dir).join(&amp;#34;src/get_file_hash_core/src/online_relays_gps.csv&amp;#34;);&lt;br/&gt;    if online_relays_csv_path.exists() {&lt;br/&gt;        println!(&amp;#34;cargo:rerun-if-changed={}&amp;#34;, online_relays_csv_path.to_str().unwrap());&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;    if cfg!(not(debug_assertions)) {&lt;br/&gt;        println!(&amp;#34;cargo:warning=Nostr feature enabled: Build may take longer due to network operations (publishing events to relays).&amp;#34;);&lt;br/&gt;&lt;br/&gt;        // This code only runs in release builds&lt;br/&gt;        let package_version = std::env::var(&amp;#34;CARGO_PKG_VERSION&amp;#34;).unwrap();&lt;br/&gt;&lt;br/&gt;        let output_dir = PathBuf::from(format!(&amp;#34;.gnostr/build/{}&amp;#34;, package_version));&lt;br/&gt;        if let Err(e) = fs::create_dir_all(&amp;amp;output_dir) {&lt;br/&gt;            println!(&amp;#34;cargo:warning=Failed to create output directory {}: {}&amp;#34;, output_dir.display(), e);&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        let files_to_publish: Vec&amp;lt;String&amp;gt; = get_git_tracked_files(&amp;amp;PathBuf::from(&amp;amp;manifest_dir));&lt;br/&gt;&lt;br/&gt;        let git_commit_hash_output = std::process::Command::new(&amp;#34;git&amp;#34;)&lt;br/&gt;            .args(&amp;amp;[&amp;#34;rev-parse&amp;#34;, &amp;#34;HEAD&amp;#34;])&lt;br/&gt;            .stdout(std::process::Stdio::piped())&lt;br/&gt;            .stderr(std::process::Stdio::piped())&lt;br/&gt;            .output()&lt;br/&gt;            .expect(&amp;#34;Failed to execute git command for commit hash&amp;#34;);&lt;br/&gt;&lt;br/&gt;        let git_commit_hash_str = if git_commit_hash_output.status.success() &amp;amp;&amp;amp; !git_commit_hash_output.stdout.is_empty() {&lt;br/&gt;            String::from_utf8(git_commit_hash_output.stdout).unwrap().trim().to_string()&lt;br/&gt;        } else {&lt;br/&gt;            println!(&amp;#34;cargo:warning=Git commit hash command failed or returned empty. Status: {:?}, Stderr: {}&amp;#34;, &lt;br/&gt;                     git_commit_hash_output.status, String::from_utf8_lossy(&amp;amp;git_commit_hash_output.stderr));&lt;br/&gt;            String::new()&lt;br/&gt;        };&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=GIT_COMMIT_HASH={}&amp;#34;, git_commit_hash_str);&lt;br/&gt;        // Create padded_commit_hash&lt;br/&gt;        let padded_commit_hash = format!(&amp;#34;{:0&amp;gt;64}&amp;#34;, &amp;amp;git_commit_hash_str);&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=PADDED_COMMIT_HASH={}&amp;#34;, padded_commit_hash);&lt;br/&gt;        // Initialize client and keys once&lt;br/&gt;        let initial_secret_key = SecretKey::parse(&amp;amp;padded_commit_hash).expect(&amp;#34;Failed to create Nostr SecretKey from PADDED_COMMIT_HASH&amp;#34;);&lt;br/&gt;        let initial_keys = Keys::new(initial_secret_key);&lt;br/&gt;        let mut client = nostr_sdk::Client::new(initial_keys.clone());&lt;br/&gt;        let mut relay_urls = get_file_hash_core::get_relay_urls();&lt;br/&gt;&lt;br/&gt;        // Add relays to the client&lt;br/&gt;        for relay_url in relay_urls.iter() {&lt;br/&gt;            if let Err(e) = client.add_relay(relay_url).await {&lt;br/&gt;                println!(&amp;#34;cargo:warning=Failed to add relay {}: {}&amp;#34;, relay_url, e);&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;        client.connect().await;&lt;br/&gt;        println!(&amp;#34;cargo:warning=Added and connected to {} relays.&amp;#34;, relay_urls.len());&lt;br/&gt;&lt;br/&gt;        let mut published_event_ids: Vec&amp;lt;Tag&amp;gt; = Vec::new();&lt;br/&gt;        let mut total_bytes_sent: usize = 0;&lt;br/&gt;    &lt;br/&gt;        for file_path_str in &amp;amp;files_to_publish {&lt;br/&gt;            println!(&amp;#34;cargo:warning=Processing file: {}&amp;#34;, file_path_str);&lt;br/&gt;            match fs::read(file_path_str) {&lt;br/&gt;                Ok(bytes) =&amp;gt; {&lt;br/&gt;                    let mut hasher = Sha256::new();&lt;br/&gt;                    hasher.update(&amp;amp;bytes);&lt;br/&gt;                    let result = hasher.finalize();&lt;br/&gt;                    let file_hash_hex = hex::encode(result);&lt;br/&gt;&lt;br/&gt;                    match SecretKey::from_hex(&amp;amp;file_hash_hex.clone()) {&lt;br/&gt;                        Ok(secret_key) =&amp;gt; {&lt;br/&gt;                            let keys = Keys::new(secret_key);&lt;br/&gt;                            let content = String::from_utf8_lossy(&amp;amp;bytes).into_owned();&lt;br/&gt;                            let tags = vec![&lt;br/&gt;                                Tag::parse([&amp;#34;file&amp;#34;, file_path_str].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;                                Tag::parse([&amp;#34;version&amp;#34;, &amp;amp;package_version].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;                            ];&lt;br/&gt;                            let event_builder = EventBuilder::text_note(content).tags(tags);&lt;br/&gt;&lt;br/&gt;                            if let Some(event_id) = publish_nostr_event_if_release(&amp;amp;mut client, file_hash_hex, keys.clone(), event_builder, &amp;amp;mut relay_urls, file_path_str, &amp;amp;output_dir, &amp;amp;mut total_bytes_sent).await {&lt;br/&gt;                                published_event_ids.push(Tag::event(event_id));&lt;br/&gt;                            }&lt;br/&gt;&lt;br/&gt;                            // Publish metadata event&lt;br/&gt;                            get_file_hash_core::publish_metadata_event(&lt;br/&gt;                                &amp;amp;keys,&lt;br/&gt;                                &amp;amp;relay_urls,&lt;br/&gt;                                DEFAULT_PICTURE_URL,&lt;br/&gt;                                DEFAULT_BANNER_URL,&lt;br/&gt;                                file_path_str,&lt;br/&gt;                            ).await;&lt;br/&gt;                        }&lt;br/&gt;                        Err(e) =&amp;gt; {&lt;br/&gt;                            println!(&amp;#34;cargo:warning=Failed to derive Nostr secret key for {}: {}&amp;#34;, file_path_str, e);&lt;br/&gt;                        }&lt;br/&gt;                    }&lt;br/&gt;                }&lt;br/&gt;                Err(e) =&amp;gt; {&lt;br/&gt;                    println!(&amp;#34;cargo:warning=Failed to read file {}: {}&amp;#34;, file_path_str, e);&lt;br/&gt;                }&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        // Create and publish the build_manifest&lt;br/&gt;        if !published_event_ids.is_empty() {&lt;br/&gt;&lt;br/&gt;            //TODO this will be either the default or detected from env vars PRIVATE_KEY&lt;br/&gt;            let keys = Keys::new(SecretKey::from_hex(DEFAULT_GNOSTR_KEY).expect(&amp;#34;Failed to create Nostr keys from DEFAULT_GNOSTR_KEY&amp;#34;));&lt;br/&gt;            let cloned_keys = keys.clone();&lt;br/&gt;            let content = format!(&amp;#34;Build manifest for get_file_hash v{}&amp;#34;, package_version);&lt;br/&gt;            let mut tags = vec![&lt;br/&gt;                Tag::parse([&amp;#34;build_manifest&amp;#34;, &amp;amp;package_version].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;                Tag::parse([&amp;#34;build_manifest&amp;#34;, &amp;amp;package_version].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;                Tag::parse([&amp;#34;build_manifest&amp;#34;, &amp;amp;package_version].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;                Tag::parse([&amp;#34;build_manifest&amp;#34;, &amp;amp;package_version].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;            ];&lt;br/&gt;            tags.extend(published_event_ids);&lt;br/&gt;&lt;br/&gt;            let event_builder = EventBuilder::text_note(content.clone()).tags(tags);&lt;br/&gt;&lt;br/&gt;            if let Some(event_id) = publish_nostr_event_if_release(&lt;br/&gt;                &amp;amp;mut client,&lt;br/&gt;                hex::encode(Sha256::digest(content.as_bytes())),&lt;br/&gt;                keys,&lt;br/&gt;                event_builder,&lt;br/&gt;                &amp;amp;mut relay_urls,&lt;br/&gt;                &amp;#34;build_manifest.json&amp;#34;,&lt;br/&gt;                &amp;amp;output_dir,&lt;br/&gt;                &amp;amp;mut total_bytes_sent,&lt;br/&gt;            ).await {&lt;br/&gt;&lt;br/&gt;                let build_manifest_event_id = Some(event_id);&lt;br/&gt;&lt;br/&gt;            // Publish metadata event for the build manifest&lt;br/&gt;            get_file_hash_core::publish_metadata_event(&lt;br/&gt;                &amp;amp;cloned_keys, // Use reference to cloned keys here&lt;br/&gt;                &amp;amp;relay_urls,&lt;br/&gt;                DEFAULT_PICTURE_URL,&lt;br/&gt;                DEFAULT_BANNER_URL,&lt;br/&gt;                &amp;amp;format!(&amp;#34;build_manifest:{}&amp;#34;, package_version),&lt;br/&gt;            ).await;&lt;br/&gt;            let git_commit_hash = &amp;amp;git_commit_hash_str;&lt;br/&gt;            let git_branch = &amp;amp;git_branch_str;&lt;br/&gt;            let repo_url = std::env::var(&amp;#34;CARGO_PKG_REPOSITORY&amp;#34;).unwrap();&lt;br/&gt;            let repo_name = std::env::var(&amp;#34;CARGO_PKG_NAME&amp;#34;).unwrap();&lt;br/&gt;            let repo_description = std::env::var(&amp;#34;CARGO_PKG_DESCRIPTION&amp;#34;).unwrap();&lt;br/&gt;&lt;br/&gt;            let output_dir = PathBuf::from(format!(&amp;#34;.gnostr/build/{}&amp;#34;, package_version));&lt;br/&gt;            if let Err(e) = fs::create_dir_all(&amp;amp;output_dir) {&lt;br/&gt;                println!(&amp;#34;cargo:warning=Failed to create output directory {}: {}&amp;#34;, output_dir.display(), e);&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            let announcement_keys = Keys::new(SecretKey::from_hex(build_manifest_event_id.unwrap().to_hex().as_str()).expect(&amp;#34;Failed to create Nostr keys from build_manifest_event_id&amp;#34;));&lt;br/&gt;            let announcement_pubkey_hex = announcement_keys.public_key().to_string();&lt;br/&gt;&lt;br/&gt;            // Publish NIP-34 Repository Announcement&lt;br/&gt;            if let Some(_event_id) = get_repo_announcement_event(&lt;br/&gt;                &amp;amp;mut client,&lt;br/&gt;                &amp;amp;announcement_keys,&lt;br/&gt;                &amp;amp;relay_urls,&lt;br/&gt;                &amp;amp;repo_url,&lt;br/&gt;                &amp;amp;repo_name,&lt;br/&gt;                &amp;amp;repo_description,&lt;br/&gt;                &amp;amp;git_commit_hash,&lt;br/&gt;                &amp;amp;git_branch,&lt;br/&gt;                &amp;amp;output_dir,&lt;br/&gt;                &amp;amp;announcement_pubkey_hex&lt;br/&gt;            ).await {&lt;br/&gt;                // Successfully published announcement&lt;br/&gt;            }&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;        println!(&amp;#34;cargo:warning=Total bytes sent to Nostr relays: {} bytes ({} MB)&amp;#34;, total_bytes_sent, total_bytes_sent as f64 / 1024.0 / 1024.0);&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;// deterministic nostr event build example&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:28:39&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsd04yu89nllc7pekss42rq6pecka2j7vs0ckcufyx49468wp8c9yczyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86ft4v2u</id>
    
      <title type="html">/// BIP-64MOD &#43; GCC: Complete Git Empty &amp;amp; Genesis Constants ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsd04yu89nllc7pekss42rq6pecka2j7vs0ckcufyx49468wp8c9yczyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86ft4v2u" />
    <content type="html">
      /// BIP-64MOD &#43; GCC: Complete Git Empty &amp;amp; Genesis Constants&lt;br/&gt;/// &lt;br/&gt;/// This module provides the standard cryptographic identifiers for &amp;#34;null&amp;#34;, &lt;br/&gt;/// &amp;#34;empty&amp;#34;, and &amp;#34;genesis&amp;#34; states, including NIP-19 (Bech32) identities.&lt;br/&gt;pub struct GitEmptyState;&lt;br/&gt;&lt;br/&gt;impl GitEmptyState {&lt;br/&gt;    // === NULL REFERENCE (Zero Hash) ===&lt;br/&gt;    pub const NULL_SHA256: &amp;amp;&amp;#39;static str = &amp;#34;0000000000000000000000000000000000000000000000000000000000000000&amp;#34;;&lt;br/&gt;&lt;br/&gt;    // === EMPTY BLOB (Empty File) ===&lt;br/&gt;    pub const BLOB_SHA1: &amp;amp;&amp;#39;static str = &amp;#34;e69de29bb2d1d6434b8b29ae775ad8c2e48c5391&amp;#34;;&lt;br/&gt;    pub const BLOB_SHA256: &amp;amp;&amp;#39;static str = &amp;#34;473a0f4c3be8a93681a267e3b1e9a7dcda1185436fe141f7749120a303721813&amp;#34;;&lt;br/&gt;    pub const BLOB_NSEC: &amp;amp;&amp;#39;static str = &amp;#34;nsec1guaq7npmaz5ndqdzvl3mr6d8mndprp2rdls5ram5jys2xqmjrqfsdzhrp6&amp;#34;;&lt;br/&gt;    pub const BLOB_NPUB: &amp;amp;&amp;#39;static str = &amp;#34;npub180cvv07tjdrghvkyh6964p7w9vsqpf3p05868v399v86p8y6f69sq5fdp0&amp;#34;;&lt;br/&gt;&lt;br/&gt;    // === EMPTY TREE (Empty Directory) ===&lt;br/&gt;    pub const TREE_SHA1: &amp;amp;&amp;#39;static str = &amp;#34;4b825dc642cb6eb9a060e54bf8d69288fbee4904&amp;#34;;&lt;br/&gt;    pub const TREE_SHA256: &amp;amp;&amp;#39;static str = &amp;#34;6ef19b41225c5369f1c104d45d8d85efa9b057b53b14b4b9b939dd74decc5321&amp;#34;;&lt;br/&gt;    pub const TREE_NSEC: &amp;amp;&amp;#39;static str = &amp;#34;nsec1dmceksfzt3fknuwpqn29mrv9a75mq4a48v2tfwde88whfhkv2vsslsc46c&amp;#34;;&lt;br/&gt;    pub const TREE_NPUB: &amp;amp;&amp;#39;static str = &amp;#34;npub1pxmpep6yk7z6p332u9588k0vscg26rv29pynvscg26rv29pynvsq6erdfh&amp;#34;;&lt;br/&gt;&lt;br/&gt;    // === GENESIS COMMIT (DeepSpaceM1 @ Epoch 0) ===&lt;br/&gt;    /// Result of: git commit --allow-empty -m &amp;#39;Initial commit&amp;#39; &lt;br/&gt;    /// With Author/Committer: DeepSpaceM1 &amp;lt;ds_m1@gnostr.org&amp;gt; @ 1970-01-01T00:00:00Z&lt;br/&gt;    pub const GENESIS_AUTHOR_NAME: &amp;amp;&amp;#39;static str = &amp;#34;DeepSpaceM1&amp;#34;;&lt;br/&gt;    pub const GENESIS_AUTHOR_EMAIL: &amp;amp;&amp;#39;static str = &amp;#34;ds_m1@gnostr.org&amp;#34;;&lt;br/&gt;    pub const GENESIS_DATE_UNIX: i64 = 0;&lt;br/&gt;    pub const GENESIS_MESSAGE: &amp;amp;&amp;#39;static str = &amp;#34;Initial commit&amp;#34;;&lt;br/&gt;&lt;br/&gt;    /// The resulting SHA-256 Commit Hash for this specific configuration&lt;br/&gt;    pub const GENESIS_COMMIT_SHA256: &amp;amp;&amp;#39;static str = &amp;#34;e9768652d87e07663479a0ad402513f56d953930b659c2ef389d4d03d3623910&amp;#34;;&lt;br/&gt;    &lt;br/&gt;    /// The NIP-19 Identity associated with the Genesis Commit&lt;br/&gt;    pub const GENESIS_NSEC: &amp;amp;&amp;#39;static str = &amp;#34;nsec1jpxmpep6yk7z6p332u9588k0vscg26rv29pynvscg26rv29pynvsq68at9d&amp;#34;;&lt;br/&gt;    pub const GENESIS_NPUB: &amp;amp;&amp;#39;static str = &amp;#34;npub1pxmpep6yk7z6p332u9588k0vscg26rv29pynvscg26rv29pynvsq6erdfh&amp;#34;;&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;/// Helper for constructing the commit object string for hashing&lt;br/&gt;pub mod builders {&lt;br/&gt;    use super::GitEmptyState;&lt;br/&gt;&lt;br/&gt;    pub fn build_genesis_commit_object() -&amp;gt; String {&lt;br/&gt;        format!(&lt;br/&gt;            &amp;#34;tree {}\nauthor {} &amp;lt;{}&amp;gt; {} &#43;0000\ncommitter {} &amp;lt;{}&amp;gt; {} &#43;0000\n\n{}\n&amp;#34;,&lt;br/&gt;            GitEmptyState::TREE_SHA256,&lt;br/&gt;            GitEmptyState::GENESIS_AUTHOR_NAME,&lt;br/&gt;            GitEmptyState::GENESIS_AUTHOR_EMAIL,&lt;br/&gt;            GitEmptyState::GENESIS_DATE_UNIX,&lt;br/&gt;            GitEmptyState::GENESIS_AUTHOR_NAME,&lt;br/&gt;            GitEmptyState::GENESIS_AUTHOR_EMAIL,&lt;br/&gt;            GitEmptyState::GENESIS_DATE_UNIX,&lt;br/&gt;            GitEmptyState::GENESIS_MESSAGE&lt;br/&gt;        )&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;--- BIP-64MOD &#43; GCC Genesis State ---&amp;#34;);&lt;br/&gt;    println!(&amp;#34;Commit Hash: {}&amp;#34;, GitEmptyState::GENESIS_COMMIT_SHA256);&lt;br/&gt;    println!(&amp;#34;Author:      {} &amp;lt;{}&amp;gt;&amp;#34;, GitEmptyState::GENESIS_AUTHOR_NAME, GitEmptyState::GENESIS_AUTHOR_EMAIL);&lt;br/&gt;    println!(&amp;#34;Timestamp:   {}&amp;#34;, GitEmptyState::GENESIS_DATE_UNIX);&lt;br/&gt;    println!(&amp;#34;NSEC:        {}&amp;#34;, GitEmptyState::GENESIS_NSEC);&lt;br/&gt;    &lt;br/&gt;    let object_raw = builders::build_genesis_commit_object();&lt;br/&gt;    println!(&amp;#34;\nRaw Git Commit Object:\n---\n{}---&amp;#34;, object_raw);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:28:24&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsrgh8lsml6wm9uemg833jdl7520tw8kxkryzsfxdh3ka2x3e2tq7szyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86c6yran</id>
    
      <title type="html">#[cfg(feature = &amp;#34;nostr&amp;#34;)] fn main() -&amp;gt; Result&amp;lt;(), ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsrgh8lsml6wm9uemg833jdl7520tw8kxkryzsfxdh3ka2x3e2tq7szyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86c6yran" />
    <content type="html">
      #[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;fn main() -&amp;gt; Result&amp;lt;(), Box&amp;lt;dyn std::error::Error&amp;gt;&amp;gt; {&lt;br/&gt;    get_file_hash_core::frost_mailbox_logic::simulate_frost_mailbox_post_signer()&lt;br/&gt;}&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example frost_mailbox_post --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:28:10&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsw5x6wpewuee48t3lf79suq8yt4wrgg0725jzhjqj7kpgh8zeh68szyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86r4a80h</id>
    
      <title type="html">#[cfg(feature = &amp;#34;nostr&amp;#34;)] fn main() -&amp;gt; Result&amp;lt;(), ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsw5x6wpewuee48t3lf79suq8yt4wrgg0725jzhjqj7kpgh8zeh68szyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86r4a80h" />
    <content type="html">
      &lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;fn main() -&amp;gt; Result&amp;lt;(), Box&amp;lt;dyn std::error::Error&amp;gt;&amp;gt; {&lt;br/&gt;    get_file_hash_core::frost_mailbox_logic::simulate_frost_mailbox_coordinator()&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example frost_mailbox --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:27:55&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsqvwjt5acnp8pdk6rd3mrkk3y5wnhslxvwq6l9sa6zxkyzwavzqtgzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86wv88s4</id>
    
      <title type="html">#[cfg(feature = &amp;#34;nostr&amp;#34;)] use frost_secp256k1_tr as ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsqvwjt5acnp8pdk6rd3mrkk3y5wnhslxvwq6l9sa6zxkyzwavzqtgzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86wv88s4" />
    <content type="html">
      #[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use frost_secp256k1_tr as frost; // MUST use the -tr variant for BIP-340/Nostr&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use rand::thread_rng;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use serde_json::json;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use sha2::{Digest, Sha256};&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use std::collections::BTreeMap;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use hex;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;fn main() -&amp;gt; Result&amp;lt;(), Box&amp;lt;dyn std::error::Error&amp;gt;&amp;gt; {&lt;br/&gt;    let mut rng = thread_rng();&lt;br/&gt;    let (max_signers, min_signers) = (3, 2);&lt;br/&gt;&lt;br/&gt;    // 1. Setup Nostr Event Metadata&lt;br/&gt;    let pubkey_hex = &amp;#34;79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798&amp;#34;; // Example&lt;br/&gt;    let created_at = 1712050000;&lt;br/&gt;    let kind = 1;&lt;br/&gt;    let content = &amp;#34;Hello from ROAST threshold signatures!&amp;#34;;&lt;br/&gt;    &lt;br/&gt;    // 2. Serialize for Nostr ID (per NIP-01)&lt;br/&gt;    let event_json = json!([&lt;br/&gt;        0,&lt;br/&gt;        pubkey_hex,&lt;br/&gt;        created_at,&lt;br/&gt;        kind,&lt;br/&gt;        [],&lt;br/&gt;        content&lt;br/&gt;    ]).to_string();&lt;br/&gt;    &lt;br/&gt;    let mut hasher = Sha256::new();&lt;br/&gt;    hasher.update(event_json.as_bytes());&lt;br/&gt;    let event_id = hasher.finalize(); // This 32-byte hash is our signing message&lt;br/&gt;&lt;br/&gt;    // 3. FROST/ROAST Key Generation&lt;br/&gt;    let (shares, pubkey_package) = frost::keys::generate_with_dealer(&lt;br/&gt;        max_signers,&lt;br/&gt;        min_signers,&lt;br/&gt;        frost::keys::IdentifierList::Default,&lt;br/&gt;        &amp;amp;mut rng,&lt;br/&gt;    )?;&lt;br/&gt;&lt;br/&gt;    // 4. ROAST Coordination Simulation (Round 1: Commitments)&lt;br/&gt;    // In ROAST, the coordinator keeps a &amp;#34;session&amp;#34; open and collects commitments&lt;br/&gt;    let mut session_commitments = BTreeMap::new();&lt;br/&gt;    let mut signer_nonces = BTreeMap::new();&lt;br/&gt;&lt;br/&gt;    // Signers 1 and 3 respond first (Signer 2 is offline/slow)&lt;br/&gt;    for &amp;amp;id_val in &amp;amp;[1, 3] {&lt;br/&gt;        let id = frost::Identifier::try_from(id_val as u16)?;&lt;br/&gt;        let (nonces, comms) = frost::round1::commit(shares[&amp;amp;id].signing_share(), &amp;amp;mut rng);&lt;br/&gt;        session_commitments.insert(id, comms);&lt;br/&gt;        signer_nonces.insert(id, nonces);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    // 5. Round 2: Signing the Nostr ID&lt;br/&gt;    let signing_package = frost::SigningPackage::new(session_commitments, &amp;amp;event_id);&lt;br/&gt;    let mut signature_shares = BTreeMap::new();&lt;br/&gt;&lt;br/&gt;    for (id, nonces) in signer_nonces {&lt;br/&gt;        let key_package: frost::keys::KeyPackage = shares[&amp;amp;id].clone().try_into()?;&lt;br/&gt;        let share = frost::round2::sign(&amp;amp;signing_package, &amp;amp;nonces, &amp;amp;key_package)?;&lt;br/&gt;        signature_shares.insert(id, share);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    // 6. Aggregate into a BIP-340 Signature&lt;br/&gt;    let group_signature = frost::aggregate(&lt;br/&gt;        &amp;amp;signing_package,&lt;br/&gt;        &amp;amp;signature_shares,&lt;br/&gt;        &amp;amp;pubkey_package,&lt;br/&gt;    )?;&lt;br/&gt;&lt;br/&gt;    // 7. Verification (using BIP-340 logic)&lt;br/&gt;    pubkey_package.verifying_key().verify(&amp;amp;event_id, &amp;amp;group_signature)?;&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;Nostr Event ID: {}&amp;#34;, hex::encode(event_id));&lt;br/&gt;    println!(&amp;#34;Threshold Signature (BIP-340): {}&amp;#34;, hex::encode(group_signature.serialize()?));&lt;br/&gt;    println!(&amp;#34;Successfully signed Nostr event using ROAST/FROST!&amp;#34;);&lt;br/&gt;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;This example requires the &amp;#39;nostr&amp;#39; feature. Please run with: cargo run --example frost_bip_340 --features nostr&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:27:39&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsfvdfrw6ff7fd5dqdy9pnlp73rx3c7eqpg88u3yhd598jv5rjh6cgzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86yfmhph</id>
    
      <title type="html">#[cfg(feature = &amp;#34;nostr&amp;#34;)] use rand_chacha::ChaCha20Rng; ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsfvdfrw6ff7fd5dqdy9pnlp73rx3c7eqpg88u3yhd598jv5rjh6cgzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86yfmhph" />
    <content type="html">
      #[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use rand_chacha::ChaCha20Rng;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use rand_chacha::rand_core::SeedableRng;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use hex;&lt;br/&gt;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use frost_secp256k1_tr as frost; &lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;use frost::keys::IdentifierList;&lt;br/&gt;&lt;br/&gt;#[cfg(feature = &amp;#34;nostr&amp;#34;)]&lt;br/&gt;fn main() -&amp;gt; Result&amp;lt;(), Box&amp;lt;dyn std::error::Error&amp;gt;&amp;gt; {&lt;br/&gt;    // 1. Create a deterministic seed (e.g., 32 bytes of zeros or a Git Hash)&lt;br/&gt;    let seed_hex = &amp;#34;473a0f4c3be8a93681a267e3b1e9a7dcda1185436fe141f7749120a303721813&amp;#34;;&lt;br/&gt;    let seed_bytes = hex::decode(seed_hex)?;&lt;br/&gt;    let mut rng = ChaCha20Rng::from_seed(seed_bytes.try_into().map_err(|_| &amp;#34;Invalid seed length&amp;#34;)?);&lt;br/&gt;&lt;br/&gt;    let max_signers = 3;&lt;br/&gt;    let min_signers = 2;&lt;br/&gt;&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;    // Round 0: Key Generation (Trusted Dealer)&lt;br/&gt;    ////////////////////////////////////////////////////////////////////////////&lt;br/&gt;&lt;br/&gt;    // Using IdentifierList::Default creates identifiers 1, 2, 3...&lt;br/&gt;    let (shares, pubkey_package) = frost::keys::generate_with_dealer(&lt;br/&gt;        max_signers,&lt;br/&gt;        min_signers,&lt;br/&gt;        IdentifierList::Default,&lt;br/&gt;        &amp;amp;mut rng,&lt;br/&gt;    )?;&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;--- Deterministic FROST Dealer ---&amp;#34;);&lt;br/&gt;    println!(&amp;#34;Threshold: {} of {}&amp;#34;, min_signers, max_signers);&lt;br/&gt;    println!(&amp;#34;Number of shares generated: {}&amp;#34;, shares.len()); &lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;\n--- Verifying Shares Against Commitments ---&amp;#34;);&lt;br/&gt;    for (identifier, share) in &amp;amp;shares {&lt;br/&gt;&lt;br/&gt;        // The Deterministic Values (Scalar Hex)&lt;br/&gt;        // Because your seed is fixed to the EMPTY_BLOB_SHA256,&lt;br/&gt;        // the &amp;#34;redacted&amp;#34; values in your output are always the same.&lt;br/&gt;        // Here are the Secret Signing Shares (the private scalars) for your 2-of-3 setup:&lt;br/&gt;        //&lt;br/&gt;        // Participant,Identifier (x),Signing Share (f(x)) in Hex&lt;br/&gt;        // Participant 1,...0001,757f49553754988450d995c65a0459a0f5a703d7c585f95f468202d09a365f57&lt;br/&gt;        // Participant 2,...0002,a3c4835e32308cb11b43968962290bc9171f1f1ca90c21741890e4f326f9879b&lt;br/&gt;        // Participant 3,...0003,d209bd672d0c80dd65ad974c6a4dc1f138973a618c924988eaaa0715b3bcafdf&lt;br/&gt;        //&lt;br/&gt;        // println!(&amp;#34;Participant Identifier: {:?} {:?}&amp;#34;, identifier, _share);&lt;br/&gt;        //&lt;br/&gt;&lt;br/&gt;        // In FROST, the &amp;#39;verify&amp;#39; method checks the share against the VSS commitment&lt;br/&gt;        match share.verify() {&lt;br/&gt;            Ok(_) =&amp;gt; {&lt;br/&gt;                println!(&amp;#34;Participant {:?}: Valid  ✅&amp;#34;, identifier);&lt;br/&gt;            }&lt;br/&gt;            Err(e) =&amp;gt; {&lt;br/&gt;                println!(&amp;#34;Participant {:?}: INVALID! ❌ Error: {:?}&amp;#34;, identifier, e);&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    let pubkey_bytes = pubkey_package.verifying_key().serialize()?;&lt;br/&gt;    println!(&amp;#34;Group Public Key (Hex Compressed): {}&amp;#34;, hex::encode(&amp;amp;pubkey_bytes));&lt;br/&gt;    let x_only_hex = hex::encode(&amp;amp;pubkey_bytes[1..]);&lt;br/&gt;    println!(&amp;#34;Group Public Key (Hex X-Only):       {}&amp;#34;, x_only_hex);&lt;br/&gt;&lt;br/&gt;    Ok(())&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;#[cfg(not(feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;fn main() {&lt;br/&gt;    println!(&amp;#34;Run with --features nostr to enable this example.&amp;#34;);&lt;br/&gt;}&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:27:25&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsr9ch484kxck4rc9mqgg8ngqce9zls6lrdxap5kdu8z0lmfchdh0czyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86mudr2w</id>
    
      <title type="html">[workspace] members = [&amp;#34;cargo:.&amp;#34;] # Config for ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsr9ch484kxck4rc9mqgg8ngqce9zls6lrdxap5kdu8z0lmfchdh0czyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86mudr2w" />
    <content type="html">
      [workspace]&lt;br/&gt;members = [&amp;#34;cargo:.&amp;#34;]&lt;br/&gt;&lt;br/&gt;# Config for &amp;#39;dist&amp;#39;&lt;br/&gt;[dist]&lt;br/&gt;# The preferred dist version to use in CI (Cargo.toml SemVer syntax)&lt;br/&gt;cargo-dist-version = &amp;#34;0.30.3&amp;#34;&lt;br/&gt;# CI backends to support&lt;br/&gt;ci = &amp;#34;github&amp;#34;&lt;br/&gt;# The installers to generate for each app&lt;br/&gt;installers = [&amp;#34;shell&amp;#34;, &amp;#34;powershell&amp;#34;, &amp;#34;homebrew&amp;#34;, &amp;#34;msi&amp;#34;]&lt;br/&gt;# A GitHub repo to push Homebrew formulas to&lt;br/&gt;tap = &amp;#34;gnostr-org/homebrew-gnostr-org&amp;#34;&lt;br/&gt;# Target platforms to build apps for (Rust target-triple syntax)&lt;br/&gt;targets = [&amp;#34;aarch64-apple-darwin&amp;#34;, &amp;#34;x86_64-apple-darwin&amp;#34;, &amp;#34;x86_64-unknown-linux-gnu&amp;#34;, &amp;#34;x86_64-pc-windows-msvc&amp;#34;]&lt;br/&gt;# Path that installers should place binaries in&lt;br/&gt;install-path = &amp;#34;CARGO_HOME&amp;#34;&lt;br/&gt;# Publish jobs to run in CI&lt;br/&gt;publish-jobs = [&amp;#34;homebrew&amp;#34;]&lt;br/&gt;# Whether to install an updater program&lt;br/&gt;install-updater = true&lt;br/&gt;allow-dirty = [&amp;#34;ci&amp;#34;]&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:27:05&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqs0wf9y6kuw3cmjjgtsmreurgwtagev7unl0k956mvgtv7phwfu6pczyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86z5wat2</id>
    
      <title type="html">/// deterministic nostr event build example // deterministic ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqs0wf9y6kuw3cmjjgtsmreurgwtagev7unl0k956mvgtv7phwfu6pczyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86z5wat2" />
    <content type="html">
      /// deterministic nostr event build example&lt;br/&gt;// deterministic nostr event build example&lt;br/&gt;use get_file_hash_core::get_file_hash;&lt;br/&gt;#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;use get_file_hash_core::{get_git_tracked_files, DEFAULT_GNOSTR_KEY, DEFAULT_PICTURE_URL, DEFAULT_BANNER_URL, publish_nostr_event_if_release, get_repo_announcement_event};&lt;br/&gt;#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;use nostr_sdk::{EventBuilder, Keys, Tag, SecretKey};&lt;br/&gt;#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;use std::fs;&lt;br/&gt;&lt;br/&gt;use std::path::PathBuf;&lt;br/&gt;use sha2::{Digest, Sha256};&lt;br/&gt;#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;use ::hex;&lt;br/&gt;&lt;br/&gt;#[tokio::main]&lt;br/&gt;async fn main() {&lt;br/&gt;    let manifest_dir = std::env::var(&amp;#34;CARGO_MANIFEST_DIR&amp;#34;).unwrap();&lt;br/&gt;    let is_git_repo = std::path::Path::new(&amp;amp;manifest_dir).join(&amp;#34;.git&amp;#34;).exists();&lt;br/&gt;    #[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;	#[allow(unused_mut)]&lt;br/&gt;    let mut git_branch_str = String::new();&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;cargo:rustc-env=CARGO_PKG_NAME={}&amp;#34;, env!(&amp;#34;CARGO_PKG_NAME&amp;#34;));&lt;br/&gt;    println!(&amp;#34;cargo:rustc-env=CARGO_PKG_VERSION={}&amp;#34;, env!(&amp;#34;CARGO_PKG_VERSION&amp;#34;));&lt;br/&gt;&lt;br/&gt;    if is_git_repo {&lt;br/&gt;        let git_commit_hash_output = std::process::Command::new(&amp;#34;git&amp;#34;)&lt;br/&gt;            .args(&amp;amp;[&amp;#34;rev-parse&amp;#34;, &amp;#34;HEAD&amp;#34;])&lt;br/&gt;            .stdout(std::process::Stdio::piped())&lt;br/&gt;            .stderr(std::process::Stdio::piped())&lt;br/&gt;            .output()&lt;br/&gt;            .expect(&amp;#34;Failed to execute git command for commit hash&amp;#34;);&lt;br/&gt;&lt;br/&gt;        let git_commit_hash_str = if git_commit_hash_output.status.success() &amp;amp;&amp;amp; !git_commit_hash_output.stdout.is_empty() {&lt;br/&gt;            String::from_utf8(git_commit_hash_output.stdout).unwrap().trim().to_string()&lt;br/&gt;        } else {&lt;br/&gt;            println!(&amp;#34;cargo:warning=Git commit hash command failed or returned empty. Status: {:?}, Stderr: {}&amp;#34;, &lt;br/&gt;                     git_commit_hash_output.status, String::from_utf8_lossy(&amp;amp;git_commit_hash_output.stderr));&lt;br/&gt;            String::new()&lt;br/&gt;        };&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=GIT_COMMIT_HASH={}&amp;#34;, git_commit_hash_str);&lt;br/&gt;&lt;br/&gt;        let git_branch_output = std::process::Command::new(&amp;#34;git&amp;#34;)&lt;br/&gt;            .args(&amp;amp;[&amp;#34;rev-parse&amp;#34;, &amp;#34;--abbrev-ref&amp;#34;, &amp;#34;HEAD&amp;#34;])&lt;br/&gt;            .stdout(std::process::Stdio::piped())&lt;br/&gt;            .stderr(std::process::Stdio::piped())&lt;br/&gt;            .output()&lt;br/&gt;            .expect(&amp;#34;Failed to execute git command for branch name&amp;#34;);&lt;br/&gt;&lt;br/&gt;        let git_branch_str = if git_branch_output.status.success() &amp;amp;&amp;amp; !git_branch_output.stdout.is_empty() {&lt;br/&gt;            String::from_utf8(git_branch_output.stdout).unwrap().trim().to_string()&lt;br/&gt;        } else {&lt;br/&gt;            println!(&amp;#34;cargo:warning=Git branch command failed or returned empty. Status: {:?}, Stderr: {}&amp;#34;, &lt;br/&gt;                     git_branch_output.status, String::from_utf8_lossy(&amp;amp;git_branch_output.stderr));&lt;br/&gt;            String::new()&lt;br/&gt;        };&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=GIT_BRANCH={}&amp;#34;, git_branch_str);&lt;br/&gt;    } else {&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=GIT_COMMIT_HASH=&amp;#34;);&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=GIT_BRANCH=&amp;#34;);&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;cargo:rerun-if-changed=.git/HEAD&amp;#34;);&lt;br/&gt;&lt;br/&gt;    //#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;    //let relay_urls = get_file_hash_core::get_relay_urls();&lt;br/&gt;&lt;br/&gt;    let cargo_toml_hash = get_file_hash!(&amp;#34;Cargo.toml&amp;#34;);&lt;br/&gt;    println!(&amp;#34;cargo:rustc-env=CARGO_TOML_HASH={}&amp;#34;, cargo_toml_hash);&lt;br/&gt;&lt;br/&gt;    let lib_hash = get_file_hash!(&amp;#34;src/lib.rs&amp;#34;);&lt;br/&gt;    println!(&amp;#34;cargo:rustc-env=LIB_HASH={}&amp;#34;, lib_hash);&lt;br/&gt;&lt;br/&gt;    let build_hash = get_file_hash!(&amp;#34;build.rs&amp;#34;);&lt;br/&gt;    println!(&amp;#34;cargo:rustc-env=BUILD_HASH={}&amp;#34;, build_hash);&lt;br/&gt;&lt;br/&gt;    println!(&amp;#34;cargo:rerun-if-changed=Cargo.toml&amp;#34;);&lt;br/&gt;    println!(&amp;#34;cargo:rerun-if-changed=src/lib.rs&amp;#34;);&lt;br/&gt;    println!(&amp;#34;cargo:rerun-if-changed=build.rs&amp;#34;);&lt;br/&gt;    let online_relays_csv_path = PathBuf::from(&amp;amp;manifest_dir).join(&amp;#34;src/get_file_hash_core/src/online_relays_gps.csv&amp;#34;);&lt;br/&gt;    if online_relays_csv_path.exists() {&lt;br/&gt;        println!(&amp;#34;cargo:rerun-if-changed={}&amp;#34;, online_relays_csv_path.to_str().unwrap());&lt;br/&gt;    }&lt;br/&gt;&lt;br/&gt;#[cfg(all(not(debug_assertions), feature = &amp;#34;nostr&amp;#34;))]&lt;br/&gt;    if cfg!(not(debug_assertions)) {&lt;br/&gt;        println!(&amp;#34;cargo:warning=Nostr feature enabled: Build may take longer due to network operations (publishing events to relays).&amp;#34;);&lt;br/&gt;&lt;br/&gt;        // This code only runs in release builds&lt;br/&gt;        let package_version = std::env::var(&amp;#34;CARGO_PKG_VERSION&amp;#34;).unwrap();&lt;br/&gt;&lt;br/&gt;        let output_dir = PathBuf::from(format!(&amp;#34;.gnostr/build/{}&amp;#34;, package_version));&lt;br/&gt;        if let Err(e) = fs::create_dir_all(&amp;amp;output_dir) {&lt;br/&gt;            println!(&amp;#34;cargo:warning=Failed to create output directory {}: {}&amp;#34;, output_dir.display(), e);&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        let files_to_publish: Vec&amp;lt;String&amp;gt; = get_git_tracked_files(&amp;amp;PathBuf::from(&amp;amp;manifest_dir));&lt;br/&gt;&lt;br/&gt;        let git_commit_hash_output = std::process::Command::new(&amp;#34;git&amp;#34;)&lt;br/&gt;            .args(&amp;amp;[&amp;#34;rev-parse&amp;#34;, &amp;#34;HEAD&amp;#34;])&lt;br/&gt;            .stdout(std::process::Stdio::piped())&lt;br/&gt;            .stderr(std::process::Stdio::piped())&lt;br/&gt;            .output()&lt;br/&gt;            .expect(&amp;#34;Failed to execute git command for commit hash&amp;#34;);&lt;br/&gt;&lt;br/&gt;        let git_commit_hash_str = if git_commit_hash_output.status.success() &amp;amp;&amp;amp; !git_commit_hash_output.stdout.is_empty() {&lt;br/&gt;            String::from_utf8(git_commit_hash_output.stdout).unwrap().trim().to_string()&lt;br/&gt;        } else {&lt;br/&gt;            println!(&amp;#34;cargo:warning=Git commit hash command failed or returned empty. Status: {:?}, Stderr: {}&amp;#34;, &lt;br/&gt;                     git_commit_hash_output.status, String::from_utf8_lossy(&amp;amp;git_commit_hash_output.stderr));&lt;br/&gt;            String::new()&lt;br/&gt;        };&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=GIT_COMMIT_HASH={}&amp;#34;, git_commit_hash_str);&lt;br/&gt;        // Create padded_commit_hash&lt;br/&gt;        let padded_commit_hash = format!(&amp;#34;{:0&amp;gt;64}&amp;#34;, &amp;amp;git_commit_hash_str);&lt;br/&gt;        println!(&amp;#34;cargo:rustc-env=PADDED_COMMIT_HASH={}&amp;#34;, padded_commit_hash);&lt;br/&gt;        // Initialize client and keys once&lt;br/&gt;        let initial_secret_key = SecretKey::parse(&amp;amp;padded_commit_hash).expect(&amp;#34;Failed to create Nostr SecretKey from PADDED_COMMIT_HASH&amp;#34;);&lt;br/&gt;        let initial_keys = Keys::new(initial_secret_key);&lt;br/&gt;        let mut client = nostr_sdk::Client::new(initial_keys.clone());&lt;br/&gt;        let mut relay_urls = get_file_hash_core::get_relay_urls();&lt;br/&gt;&lt;br/&gt;        // Add relays to the client&lt;br/&gt;        for relay_url in relay_urls.iter() {&lt;br/&gt;            if let Err(e) = client.add_relay(relay_url).await {&lt;br/&gt;                println!(&amp;#34;cargo:warning=Failed to add relay {}: {}&amp;#34;, relay_url, e);&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;        client.connect().await;&lt;br/&gt;        println!(&amp;#34;cargo:warning=Added and connected to {} relays.&amp;#34;, relay_urls.len());&lt;br/&gt;&lt;br/&gt;        let mut published_event_ids: Vec&amp;lt;Tag&amp;gt; = Vec::new();&lt;br/&gt;        let mut total_bytes_sent: usize = 0;&lt;br/&gt;    &lt;br/&gt;        for file_path_str in &amp;amp;files_to_publish {&lt;br/&gt;            println!(&amp;#34;cargo:warning=Processing file: {}&amp;#34;, file_path_str);&lt;br/&gt;            match fs::read(file_path_str) {&lt;br/&gt;                Ok(bytes) =&amp;gt; {&lt;br/&gt;                    let mut hasher = Sha256::new();&lt;br/&gt;                    hasher.update(&amp;amp;bytes);&lt;br/&gt;                    let result = hasher.finalize();&lt;br/&gt;                    let file_hash_hex = hex::encode(result);&lt;br/&gt;&lt;br/&gt;                    match SecretKey::from_hex(&amp;amp;file_hash_hex.clone()) {&lt;br/&gt;                        Ok(secret_key) =&amp;gt; {&lt;br/&gt;                            let keys = Keys::new(secret_key);&lt;br/&gt;                            let content = String::from_utf8_lossy(&amp;amp;bytes).into_owned();&lt;br/&gt;                            let tags = vec![&lt;br/&gt;                                Tag::parse([&amp;#34;file&amp;#34;, file_path_str].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;                                Tag::parse([&amp;#34;version&amp;#34;, &amp;amp;package_version].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;                            ];&lt;br/&gt;                            let event_builder = EventBuilder::text_note(content).tags(tags);&lt;br/&gt;&lt;br/&gt;                            if let Some(event_id) = publish_nostr_event_if_release(&amp;amp;mut client, file_hash_hex, keys.clone(), event_builder, &amp;amp;mut relay_urls, file_path_str, &amp;amp;output_dir, &amp;amp;mut total_bytes_sent).await {&lt;br/&gt;                                published_event_ids.push(Tag::event(event_id));&lt;br/&gt;                            }&lt;br/&gt;&lt;br/&gt;                            // Publish metadata event&lt;br/&gt;                            get_file_hash_core::publish_metadata_event(&lt;br/&gt;                                &amp;amp;keys,&lt;br/&gt;                                &amp;amp;relay_urls,&lt;br/&gt;                                DEFAULT_PICTURE_URL,&lt;br/&gt;                                DEFAULT_BANNER_URL,&lt;br/&gt;                                file_path_str,&lt;br/&gt;                            ).await;&lt;br/&gt;                        }&lt;br/&gt;                        Err(e) =&amp;gt; {&lt;br/&gt;                            println!(&amp;#34;cargo:warning=Failed to derive Nostr secret key for {}: {}&amp;#34;, file_path_str, e);&lt;br/&gt;                        }&lt;br/&gt;                    }&lt;br/&gt;                }&lt;br/&gt;                Err(e) =&amp;gt; {&lt;br/&gt;                    println!(&amp;#34;cargo:warning=Failed to read file {}: {}&amp;#34;, file_path_str, e);&lt;br/&gt;                }&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;&lt;br/&gt;        // Create and publish the build_manifest&lt;br/&gt;        if !published_event_ids.is_empty() {&lt;br/&gt;&lt;br/&gt;            //TODO this will be either the default or detected from env vars PRIVATE_KEY&lt;br/&gt;            let keys = Keys::new(SecretKey::from_hex(DEFAULT_GNOSTR_KEY).expect(&amp;#34;Failed to create Nostr keys from DEFAULT_GNOSTR_KEY&amp;#34;));&lt;br/&gt;            let cloned_keys = keys.clone();&lt;br/&gt;            let content = format!(&amp;#34;Build manifest for get_file_hash v{}&amp;#34;, package_version);&lt;br/&gt;            let mut tags = vec![&lt;br/&gt;                Tag::parse([&amp;#34;build_manifest&amp;#34;, &amp;amp;package_version].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;                Tag::parse([&amp;#34;build_manifest&amp;#34;, &amp;amp;package_version].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;                Tag::parse([&amp;#34;build_manifest&amp;#34;, &amp;amp;package_version].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;                Tag::parse([&amp;#34;build_manifest&amp;#34;, &amp;amp;package_version].iter().map(ToString::to_string).collect::&amp;lt;Vec&amp;lt;String&amp;gt;&amp;gt;()).unwrap(),&lt;br/&gt;            ];&lt;br/&gt;            tags.extend(published_event_ids);&lt;br/&gt;&lt;br/&gt;            let event_builder = EventBuilder::text_note(content.clone()).tags(tags);&lt;br/&gt;&lt;br/&gt;            if let Some(event_id) = publish_nostr_event_if_release(&lt;br/&gt;                &amp;amp;mut client,&lt;br/&gt;                hex::encode(Sha256::digest(content.as_bytes())),&lt;br/&gt;                keys,&lt;br/&gt;                event_builder,&lt;br/&gt;                &amp;amp;mut relay_urls,&lt;br/&gt;                &amp;#34;build_manifest.json&amp;#34;,&lt;br/&gt;                &amp;amp;output_dir,&lt;br/&gt;                &amp;amp;mut total_bytes_sent,&lt;br/&gt;            ).await {&lt;br/&gt;&lt;br/&gt;                let build_manifest_event_id = Some(event_id);&lt;br/&gt;&lt;br/&gt;            // Publish metadata event for the build manifest&lt;br/&gt;            get_file_hash_core::publish_metadata_event(&lt;br/&gt;                &amp;amp;cloned_keys, // Use reference to cloned keys here&lt;br/&gt;                &amp;amp;relay_urls,&lt;br/&gt;                DEFAULT_PICTURE_URL,&lt;br/&gt;                DEFAULT_BANNER_URL,&lt;br/&gt;                &amp;amp;format!(&amp;#34;build_manifest:{}&amp;#34;, package_version),&lt;br/&gt;            ).await;&lt;br/&gt;            let git_commit_hash = &amp;amp;git_commit_hash_str;&lt;br/&gt;            let git_branch = &amp;amp;git_branch_str;&lt;br/&gt;            let repo_url = std::env::var(&amp;#34;CARGO_PKG_REPOSITORY&amp;#34;).unwrap();&lt;br/&gt;            let repo_name = std::env::var(&amp;#34;CARGO_PKG_NAME&amp;#34;).unwrap();&lt;br/&gt;            let repo_description = std::env::var(&amp;#34;CARGO_PKG_DESCRIPTION&amp;#34;).unwrap();&lt;br/&gt;&lt;br/&gt;            let output_dir = PathBuf::from(format!(&amp;#34;.gnostr/build/{}&amp;#34;, package_version));&lt;br/&gt;            if let Err(e) = fs::create_dir_all(&amp;amp;output_dir) {&lt;br/&gt;                println!(&amp;#34;cargo:warning=Failed to create output directory {}: {}&amp;#34;, output_dir.display(), e);&lt;br/&gt;            }&lt;br/&gt;&lt;br/&gt;            let announcement_keys = Keys::new(SecretKey::from_hex(build_manifest_event_id.unwrap().to_hex().as_str()).expect(&amp;#34;Failed to create Nostr keys from build_manifest_event_id&amp;#34;));&lt;br/&gt;            let announcement_pubkey_hex = announcement_keys.public_key().to_string();&lt;br/&gt;&lt;br/&gt;            // Publish NIP-34 Repository Announcement&lt;br/&gt;            if let Some(_event_id) = get_repo_announcement_event(&lt;br/&gt;                &amp;amp;mut client,&lt;br/&gt;                &amp;amp;announcement_keys,&lt;br/&gt;                &amp;amp;relay_urls,&lt;br/&gt;                &amp;amp;repo_url,&lt;br/&gt;                &amp;amp;repo_name,&lt;br/&gt;                &amp;amp;repo_description,&lt;br/&gt;                &amp;amp;git_commit_hash,&lt;br/&gt;                &amp;amp;git_branch,&lt;br/&gt;                &amp;amp;output_dir,&lt;br/&gt;                &amp;amp;announcement_pubkey_hex&lt;br/&gt;            ).await {&lt;br/&gt;                // Successfully published announcement&lt;br/&gt;            }&lt;br/&gt;            }&lt;br/&gt;        }&lt;br/&gt;        println!(&amp;#34;cargo:warning=Total bytes sent to Nostr relays: {} bytes ({} MB)&amp;#34;, total_bytes_sent, total_bytes_sent as f64 / 1024.0 / 1024.0);&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;// deterministic nostr event build example&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:26:46&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsqkfqythj7s2s35v30mr06wt258lp9ahva3l7mpkmrwzk2w9g0upczyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86h4lpgm</id>
    
      <title type="html"># `get_file_hash` macro This project provides a Rust procedural ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsqkfqythj7s2s35v30mr06wt258lp9ahva3l7mpkmrwzk2w9g0upczyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86h4lpgm" />
    <content type="html">
      # `get_file_hash` macro&lt;br/&gt;&lt;br/&gt;This project provides a Rust procedural macro, `get_file_hash!`, designed to compute the SHA-256 hash of a specified file at compile time. This hash is then embedded directly into your compiled executable. This feature is invaluable for:&lt;br/&gt;&lt;br/&gt;*   **Integrity Verification:** Ensuring the deployed code hasn&amp;#39;t been tampered with.&lt;br/&gt;*   **Versioning:** Embedding a unique identifier linked to the exact source code version.&lt;br/&gt;*   **Cache Busting:** Generating unique names for assets based on their content.&lt;br/&gt;&lt;br/&gt;## Project Structure&lt;br/&gt;&lt;br/&gt;*   `get_file_hash_core`: A foundational crate containing the `get_file_hash!` macro definition.&lt;br/&gt;*   `get_file_hash`: The main library crate that re-exports the macro.&lt;br/&gt;*   `src/bin/get_file_hash.rs`: An example executable demonstrating the macro&amp;#39;s usage by hashing its own source file and updating this `README.md`.&lt;br/&gt;*   `build.rs`: A build script that also utilizes the `get_file_hash!` macro to hash `Cargo.toml` during the build process.&lt;br/&gt;&lt;br/&gt;## Usage of `get_file_hash!` Macro&lt;br/&gt;&lt;br/&gt;To use the `get_file_hash!` macro, ensure you have `get_file_hash` (or `get_file_hash_core` for direct usage) as a dependency in your `Cargo.toml`.&lt;br/&gt;&lt;br/&gt;### Example&lt;br/&gt;&lt;br/&gt;```rust&lt;br/&gt;use get_file_hash::get_file_hash;&lt;br/&gt;use get_file_hash::CARGO_TOML_HASH;&lt;br/&gt;use sha2::{Digest, Sha256};&lt;br/&gt;&lt;br/&gt;fn main() {&lt;br/&gt;    // The macro resolves the path relative to CARGO_MANIFEST_DIR&lt;br/&gt;    let readme_hash = get_file_hash!(&amp;#34;src/bin/readme.rs&amp;#34;);&lt;br/&gt;    let lib_hash = get_file_hash!(&amp;#34;src/lib.rs&amp;#34;);&lt;br/&gt;    println!(&amp;#34;The SHA-256 hash of src/lib.rs is: {}&amp;#34;, lib_hash);&lt;br/&gt;    println!(&amp;#34;The SHA-256 hash of src/bin/readme.rs is: {}&amp;#34;, readme_hash);&lt;br/&gt;    println!(&amp;#34;The SHA-256 hash of Cargo.toml is: {}&amp;#34;, CARGO_TOML_HASH);&lt;br/&gt;}&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;## Release&lt;br/&gt;## [`README.md`](./README.md)&lt;br/&gt;&lt;br/&gt;```bash&lt;br/&gt;cargo run --bin readme &amp;gt; README.md&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;## [`src/bin/readme.rs`](src/bin/readme.rs)&lt;br/&gt;&lt;br/&gt;*   **Target File:** `src/bin/readme.rs`&lt;br/&gt;## NIP-34 Integration: Git Repository Events on Nostr&lt;br/&gt;&lt;br/&gt;This library provides a set of powerful macros and functions for integrating Git repository events with the Nostr protocol, adhering to the [NIP-34: Git Repositories on Nostr](&lt;a href=&#34;https://github.com/nostr-protocol/nips/blob/master/34.md&#34;&gt;https://github.com/nostr-protocol/nips/blob/master/34.md&lt;/a&gt;) specification.&lt;br/&gt;&lt;br/&gt;These tools allow you to publish various Git-related events to Nostr relays, enabling decentralized tracking and collaboration for your code repositories.&lt;br/&gt;&lt;br/&gt;### Available NIP-34 Macros&lt;br/&gt;&lt;br/&gt;Each macro provides a convenient way to publish specific NIP-34 event kinds:&lt;br/&gt;&lt;br/&gt;*   [`repository_announcement!`](#repository_announcement)&lt;br/&gt;    *   Publishes a `Repository Announcement` event (Kind 30617) to announce a new or updated Git repository.&lt;br/&gt;*   [`publish_patch!`](#publish_patch)&lt;br/&gt;    *   Publishes a `Patch` event (Kind 1617) containing a Git patch (diff) for a specific commit.&lt;br/&gt;*   [`publish_pull_request!`](#publish_pull_request)&lt;br/&gt;    *   Publishes a `Pull Request` event (Kind 1618) to propose changes and facilitate code review.&lt;br/&gt;*   [`publish_pr_update!`](#publish_pr_update)&lt;br/&gt;    *   Publishes a `Pull Request Update` event (Kind 1619) to update an existing pull request.&lt;br/&gt;*   [`publish_repository_state!`](#publish_repository_state)&lt;br/&gt;    *   Publishes a `Repository State` event (Kind 1620) to announce the current state of a branch (e.g., its latest commit).&lt;br/&gt;*   [`publish_issue!`](#publish_issue)&lt;br/&gt;    *   Publishes an `Issue` event (Kind 1621) to report bugs, request features, or track tasks.&lt;br/&gt;&lt;br/&gt;### Running NIP-34 Examples&lt;br/&gt;&lt;br/&gt;To see these macros in action, navigate to the `examples/` directory and run each example individually with the `nostr` feature enabled:&lt;br/&gt;&lt;br/&gt;```bash&lt;br/&gt;cargo run --example repository_announcement --features nostr&lt;br/&gt;cargo run --example publish_patch --features nostr&lt;br/&gt;cargo run --example publish_pull_request --features nostr&lt;br/&gt;cargo run --example publish_pr_update --features nostr&lt;br/&gt;cargo run --example publish_repository_state --features nostr&lt;br/&gt;cargo run --example publish_issue --features nostr&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;*   **SHA-256 Hash:** 6c6325c5a4c14f44cbda6ca53179ab3d6666ce7c916365668c6dd1d79215db59&lt;br/&gt;*   **Status:** Integrity Verified..&lt;br/&gt;&lt;br/&gt;##&lt;br/&gt;&lt;br/&gt;## [`build.rs`](build.rs)&lt;br/&gt;&lt;br/&gt;*   **Target File:** `build.rs`&lt;br/&gt;*   **SHA-256 Hash:** 20c958c8cbb5c77cf5eb3763b6da149b61241d328df52d39b7aa97903305c889&lt;br/&gt;*   **Status:** Integrity Verified..&lt;br/&gt;&lt;br/&gt;##&lt;br/&gt;&lt;br/&gt;## [`Cargo.toml`](Cargo.toml)&lt;br/&gt;&lt;br/&gt;*   **Target File:** `Cargo.toml`&lt;br/&gt;*   **SHA-256 Hash:** e3f392bf23b5fb40902acd313a8c76d1943060b6805ea8615de62f9baf0c6513&lt;br/&gt;*   **Status:** Integrity Verified..&lt;br/&gt;&lt;br/&gt;##&lt;br/&gt;&lt;br/&gt;## [`src/lib.rs`](src/lib.rs)&lt;br/&gt;&lt;br/&gt;*   **Target File:** `src/lib.rs`&lt;br/&gt;*   **SHA-256 Hash:** 591593482a6c9aac8793aa1e488e613f52a4effb1ec3465fd9d6a54537f2b123&lt;br/&gt;*   **Status:** Integrity Verified..&lt;br/&gt;&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:26:26&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsfextcus8vgdk3g6zxtae7zhd0vxk4fx76xvnq2xf80uk8rn9rsdczyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86juyahy</id>
    
      <title type="html">[workspace] members = [&amp;#34;.&amp;#34;, ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsfextcus8vgdk3g6zxtae7zhd0vxk4fx76xvnq2xf80uk8rn9rsdczyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86juyahy" />
    <content type="html">
      [workspace]&lt;br/&gt;members = [&amp;#34;.&amp;#34;, &amp;#34;src/get_file_hash_core&amp;#34;, &amp;#34;n34&amp;#34;, &amp;#34;n34-relay&amp;#34;]&lt;br/&gt;&lt;br/&gt;[workspace.package]&lt;br/&gt;version = &amp;#34;0.4.1&#43;n34&amp;#34;&lt;br/&gt;edition = &amp;#34;2024&amp;#34;&lt;br/&gt;license = &amp;#34;MIT&amp;#34;&lt;br/&gt;authors = [&amp;#34;gnostr admin@gnostr.org&amp;#34;]&lt;br/&gt;documentation = &amp;#34;&lt;a href=&#34;https://github.com/gnostr-org/get_file_hash#readme&amp;#34&#34;&gt;https://github.com/gnostr-org/get_file_hash#readme&amp;#34&lt;/a&gt;;&lt;br/&gt;homepage = &amp;#34;&lt;a href=&#34;https://github.com/gnostr-org/get_file_hash&amp;#34&#34;&gt;https://github.com/gnostr-org/get_file_hash&amp;#34&lt;/a&gt;;&lt;br/&gt;repository = &amp;#34;&lt;a href=&#34;https://github.com/gnostr-org/get_file_hash&amp;#34&#34;&gt;https://github.com/gnostr-org/get_file_hash&amp;#34&lt;/a&gt;;&lt;br/&gt;description = &amp;#34;A utility crate providing a procedural macro to compute and embed file hashes at compile time.&amp;#34;&lt;br/&gt;&lt;br/&gt;[package]&lt;br/&gt;name = &amp;#34;get_file_hash&amp;#34;&lt;br/&gt;version.workspace = true&lt;br/&gt;edition.workspace = true&lt;br/&gt;description.workspace = true&lt;br/&gt;repository.workspace = true&lt;br/&gt;homepage.workspace = true&lt;br/&gt;authors.workspace = true&lt;br/&gt;license.workspace = true&lt;br/&gt;&lt;br/&gt;[package.metadata.wix]&lt;br/&gt;upgrade-guid = &amp;#34;DED69220-26E3-4406-B564-7F2B58C56F57&amp;#34;&lt;br/&gt;path-guid = &amp;#34;8DB39A25-8B99-4C25-8CF5-4704353C7C6E&amp;#34;&lt;br/&gt;license = false&lt;br/&gt;eula = false&lt;br/&gt;&lt;br/&gt;[features]&lt;br/&gt;nostr = [&amp;#34;dep:nostr&amp;#34;, &amp;#34;dep:nostr-sdk&amp;#34;, &amp;#34;dep:hex&amp;#34;]&lt;br/&gt;frost = [&amp;#34;dep:nostr&amp;#34;, &amp;#34;dep:nostr-sdk&amp;#34;, &amp;#34;dep:hex&amp;#34;]&lt;br/&gt;&lt;br/&gt;[workspace.dependencies]&lt;br/&gt;get_file_hash_core = { features = [&amp;#34;nostr&amp;#34;], path = &amp;#34;src/get_file_hash_core&amp;#34;, version = &amp;#34;0.4.1&#43;n34&amp;#34; }&lt;br/&gt;rand_chacha = &amp;#34;0.3&amp;#34;&lt;br/&gt;sha2 = &amp;#34;0.11.0&amp;#34;&lt;br/&gt;nostr = { version = &amp;#34;0.44.2&amp;#34;, features = [&amp;#34;std&amp;#34;, &amp;#34;nip46&amp;#34;] }&lt;br/&gt;nostr-sdk = { version = &amp;#34;0.44.0&amp;#34;, default-features = false, features = [&amp;#34;default&amp;#34;] }&lt;br/&gt;hex = &amp;#34;0.4.2&amp;#34;&lt;br/&gt;tokio = &amp;#34;1&amp;#34;&lt;br/&gt;serde_json = &amp;#34;1.0&amp;#34;&lt;br/&gt;csv = { version = &amp;#34;1.3.0&amp;#34;, default-features = false }&lt;br/&gt;url = &amp;#34;2.5.0&amp;#34;&lt;br/&gt;reqwest = { version = &amp;#34;0.12.0&amp;#34;, default-features = false }&lt;br/&gt;tempfile = &amp;#34;3.27.0&amp;#34;&lt;br/&gt;rand = &amp;#34;0.8&amp;#34;&lt;br/&gt;frost-secp256k1-tr = &amp;#34;3.0.0-rc.0&amp;#34;&lt;br/&gt;serial_test = { version = &amp;#34;3.4.0&amp;#34;, features = [&amp;#34;test_logging&amp;#34;] }&lt;br/&gt;log = &amp;#34;0.4&amp;#34;&lt;br/&gt;n34 = { version = &amp;#34;0.4.0&amp;#34;, path = &amp;#34;n34&amp;#34; }&lt;br/&gt;n34-relay = { version = &amp;#34;0.1.0&amp;#34;, path = &amp;#34;n34-relay&amp;#34; }&lt;br/&gt;chrono                     = &amp;#34;0.4.41&amp;#34;&lt;br/&gt;convert_case               = &amp;#34;0.8.0&amp;#34;&lt;br/&gt;dirs                       = &amp;#34;6.0.0&amp;#34;&lt;br/&gt;easy-ext                   = &amp;#34;1.0.2&amp;#34;&lt;br/&gt;either                     = &amp;#34;1.15.0&amp;#34;&lt;br/&gt;futures                    = &amp;#34;0.3.31&amp;#34;&lt;br/&gt;nostr-browser-signer-proxy = &amp;#34;0.43.0&amp;#34;&lt;br/&gt;regex                      = &amp;#34;1.11.1&amp;#34;&lt;br/&gt;thiserror                  = &amp;#34;2.0.12&amp;#34;&lt;br/&gt;toml                       = &amp;#34;0.9.4&amp;#34;&lt;br/&gt;tracing                    = &amp;#34;0.1.41&amp;#34;&lt;br/&gt;tracing-subscriber         = &amp;#34;0.3.19&amp;#34;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;[dependencies]&lt;br/&gt;get_file_hash_core = { workspace = true, features = [&amp;#34;nostr&amp;#34;]  }&lt;br/&gt;sha2 = { workspace = true }&lt;br/&gt;tracing = { workspace = true }&lt;br/&gt;tracing-subscriber = { workspace = true }&lt;br/&gt;nostr = { workspace = true, optional = true }&lt;br/&gt;nostr-sdk = { workspace = true, optional = true }&lt;br/&gt;hex = { workspace = true, optional = true }&lt;br/&gt;tokio = { workspace = true, features = [&amp;#34;full&amp;#34;] }&lt;br/&gt;frost-secp256k1-tr = { workspace = true }&lt;br/&gt;rand = { workspace = true }&lt;br/&gt;serde_json = { workspace = true }&lt;br/&gt;rand_chacha = { workspace = true }&lt;br/&gt;n34 = { workspace = true }&lt;br/&gt;n34-relay = { workspace = true }&lt;br/&gt;axum               = { version = &amp;#34;0.8.6&amp;#34;, features = [&amp;#34;http2&amp;#34;, &amp;#34;ws&amp;#34;] }&lt;br/&gt;base64             = &amp;#34;0.22.1&amp;#34;&lt;br/&gt;chrono             = &amp;#34;0.4.42&amp;#34;&lt;br/&gt;config             = { version = &amp;#34;0.15.15&amp;#34;, default-features = false, features = [&amp;#34;toml&amp;#34;] }&lt;br/&gt;const_format       = &amp;#34;0.2.34&amp;#34;&lt;br/&gt;convert_case       = &amp;#34;0.8.0&amp;#34;&lt;br/&gt;easy-ext           = &amp;#34;1.0.2&amp;#34;&lt;br/&gt;either             = &amp;#34;1.15.0&amp;#34;&lt;br/&gt;flume              = &amp;#34;0.11.1&amp;#34;&lt;br/&gt;futures            = &amp;#34;0.3.31&amp;#34;&lt;br/&gt;hyper              = &amp;#34;1.7.0&amp;#34;&lt;br/&gt;hyper-util         = &amp;#34;0.1.17&amp;#34;&lt;br/&gt;parking_lot        = { version = &amp;#34;0.12.5&amp;#34;, features = [&amp;#34;serde&amp;#34;] }&lt;br/&gt;prost              = &amp;#34;0.14.1&amp;#34;&lt;br/&gt;serde              = { version = &amp;#34;1.0.219&amp;#34;, features = [&amp;#34;rc&amp;#34;] }&lt;br/&gt;#serde_json         = &amp;#34;1.0.145&amp;#34;&lt;br/&gt;serde_with         = &amp;#34;3.15.0&amp;#34;&lt;br/&gt;sha1               = &amp;#34;0.10.6&amp;#34;&lt;br/&gt;#sha2               = &amp;#34;0.10.9&amp;#34;&lt;br/&gt;strum              = { version = &amp;#34;0.27.2&amp;#34;, features = [&amp;#34;derive&amp;#34;] }&lt;br/&gt;thiserror          = &amp;#34;2.0.16&amp;#34;&lt;br/&gt;tokio-util         = { version = &amp;#34;0.7.17&amp;#34;, features = [&amp;#34;io&amp;#34;] }&lt;br/&gt;toml               = &amp;#34;0.9.5&amp;#34;&lt;br/&gt;tonic-prost        = &amp;#34;0.14.2&amp;#34;&lt;br/&gt;tower              = { version = &amp;#34;0.5.2&amp;#34;, features = [&amp;#34;limit&amp;#34;] }&lt;br/&gt;#tracing            = &amp;#34;0.1.41&amp;#34;&lt;br/&gt;#tracing-subscriber = { version = &amp;#34;0.3.20&amp;#34;, features = [&amp;#34;env-filter&amp;#34;] }&lt;br/&gt;dirs = &amp;#34;6.0.0&amp;#34;&lt;br/&gt;rhai = { version = &amp;#34;1.23.4&amp;#34;, features = [&lt;br/&gt;  &amp;#34;no_position&amp;#34;,&lt;br/&gt;  &amp;#34;sync&amp;#34;,&lt;br/&gt;  &amp;#34;serde&amp;#34;,&lt;br/&gt;  &amp;#34;decimal&amp;#34;,&lt;br/&gt;] }&lt;br/&gt;##tokio = { version = &amp;#34;1.47.1&amp;#34;, features = [&lt;br/&gt;##  &amp;#34;macros&amp;#34;,&lt;br/&gt;##  &amp;#34;rt-multi-thread&amp;#34;,&lt;br/&gt;##  &amp;#34;signal&amp;#34;,&lt;br/&gt;##  &amp;#34;fs&amp;#34;,&lt;br/&gt;##  &amp;#34;process&amp;#34;,&lt;br/&gt;##] }&lt;br/&gt;tonic = { version = &amp;#34;0.14.2&amp;#34;, features = [&lt;br/&gt;  &amp;#34;tls-ring&amp;#34;,&lt;br/&gt;  &amp;#34;tls-webpki-roots&amp;#34;,&lt;br/&gt;  &amp;#34;gzip&amp;#34;,&lt;br/&gt;  &amp;#34;deflate&amp;#34;,&lt;br/&gt;] }&lt;br/&gt;tower-http = { version = &amp;#34;0.6.6&amp;#34;, features = [&lt;br/&gt;  &amp;#34;cors&amp;#34;,&lt;br/&gt;  &amp;#34;decompression-br&amp;#34;,&lt;br/&gt;  &amp;#34;decompression-deflate&amp;#34;,&lt;br/&gt;  &amp;#34;decompression-gzip&amp;#34;,&lt;br/&gt;  &amp;#34;decompression-zstd&amp;#34;,&lt;br/&gt;  &amp;#34;trace&amp;#34;,&lt;br/&gt;  &amp;#34;timeout&amp;#34;,&lt;br/&gt;] }&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;[dependencies.clap]&lt;br/&gt;features = [&amp;#34;derive&amp;#34;]&lt;br/&gt;version  = &amp;#34;4.5.42&amp;#34;&lt;br/&gt;&lt;br/&gt;[dependencies.clap-verbosity-flag]&lt;br/&gt;default-features = false&lt;br/&gt;features         = [&amp;#34;tracing&amp;#34;]&lt;br/&gt;version          = &amp;#34;3.0.3&amp;#34;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;  # We frequently switch between stable and unstable versions; this will make the&lt;br/&gt;  # process easier.&lt;br/&gt;  ## [dependencies.nostr]&lt;br/&gt;  ## default-features = false&lt;br/&gt;  ## features         = [&amp;#34;std&amp;#34;]&lt;br/&gt;  ## git              = &amp;#34;&lt;a href=&#34;https://git.4rs.nl/mirrors/nostr.git&amp;#34&#34;&gt;https://git.4rs.nl/mirrors/nostr.git&amp;#34&lt;/a&gt;;&lt;br/&gt;  ## rev              = &amp;#34;27a1947d3&amp;#34;&lt;br/&gt;  ## # version          = &amp;#34;0.45.0&amp;#34;&lt;br/&gt;  [dependencies.nostr-database]&lt;br/&gt;  default-features = false&lt;br/&gt;  git              = &amp;#34;&lt;a href=&#34;https://git.4rs.nl/mirrors/nostr.git&amp;#34&#34;&gt;https://git.4rs.nl/mirrors/nostr.git&amp;#34&lt;/a&gt;;&lt;br/&gt;  rev              = &amp;#34;27a1947d3&amp;#34;&lt;br/&gt;  # version          = &amp;#34;0.45.0&amp;#34;&lt;br/&gt;  [dependencies.nostr-lmdb]&lt;br/&gt;  default-features = false&lt;br/&gt;  git              = &amp;#34;&lt;a href=&#34;https://git.4rs.nl/mirrors/nostr.git&amp;#34&#34;&gt;https://git.4rs.nl/mirrors/nostr.git&amp;#34&lt;/a&gt;;&lt;br/&gt;  rev              = &amp;#34;27a1947d3&amp;#34;&lt;br/&gt;  # version          = &amp;#34;0.45.0&amp;#34;&lt;br/&gt;  [dependencies.nostr-relay-builder]&lt;br/&gt;  default-features = false&lt;br/&gt;  git              = &amp;#34;&lt;a href=&#34;https://git.4rs.nl/mirrors/nostr.git&amp;#34&#34;&gt;https://git.4rs.nl/mirrors/nostr.git&amp;#34&lt;/a&gt;;&lt;br/&gt;  rev              = &amp;#34;27a1947d3&amp;#34;&lt;br/&gt;  # version          = &amp;#34;0.45.0&amp;#34;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;[build-dependencies]&lt;br/&gt;get_file_hash_core = { workspace = true, features = [&amp;#34;nostr&amp;#34;] }&lt;br/&gt;sha2 = { workspace = true }&lt;br/&gt;serde_json = { workspace = true }&lt;br/&gt;tokio = { workspace = true, features = [&amp;#34;full&amp;#34;] }&lt;br/&gt;nostr = { workspace = true }&lt;br/&gt;nostr-sdk = { workspace = true }&lt;br/&gt;hex = { workspace = true }&lt;br/&gt;tonic-prost-build = &amp;#34;0.14.2&amp;#34;&lt;br/&gt;&lt;br/&gt;# The profile that &amp;#39;dist&amp;#39; will build with&lt;br/&gt;[profile.dist]&lt;br/&gt;inherits = &amp;#34;release&amp;#34;&lt;br/&gt;lto = &amp;#34;thin&amp;#34;&lt;br/&gt;&lt;br/&gt;[dev-dependencies]&lt;br/&gt;serial_test = { workspace = true }&lt;br/&gt;&lt;br/&gt;[[example]]&lt;br/&gt;name = &amp;#34;gnostr-build&amp;#34;&lt;br/&gt;path = &amp;#34;examples/gnostr-build.rs&amp;#34;&lt;br/&gt;required-features = [&amp;#34;nostr&amp;#34;]&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:26:10&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsy993sqdfwgcu375tcvz6szxwx2tsgxxkz43p740k8h4ytjnaj52szyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86knfawj</id>
    
      <title type="html"># `build.rs` Documentation This document explains the ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsy993sqdfwgcu375tcvz6szxwx2tsgxxkz43p740k8h4ytjnaj52szyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86knfawj" />
    <content type="html">
      # `build.rs` Documentation&lt;br/&gt;&lt;br/&gt;This document explains the functionality of the `build.rs` script in this project. The `build.rs` script is a special Rust file that, if present, Cargo will compile and run *before* compiling the rest of your package. It&amp;#39;s typically used for tasks that need to be performed during the build process, such as generating code, setting environment variables, or performing conditional compilation.&lt;br/&gt;&lt;br/&gt;## Core Functionality&lt;br/&gt;&lt;br/&gt;The `build.rs` script in this project performs the following key functions:&lt;br/&gt;&lt;br/&gt;1.  **Environment Variable Injection:** It computes various project-related values at compile time and injects them as environment variables (`CARGO_RUSTC_ENV=...`) that can be accessed by the main crate using `env!(&amp;#34;VAR_NAME&amp;#34;)`. This includes:&lt;br/&gt;    *   `CARGO_PKG_NAME`: The name of the current package (from `Cargo.toml`).&lt;br/&gt;    *   `CARGO_PKG_VERSION`: The version of the current package (from `Cargo.toml`).&lt;br/&gt;    *   `GIT_COMMIT_HASH`: The full commit hash of the current Git HEAD (if in a Git repository).&lt;br/&gt;    *   `GIT_BRANCH`: The name of the current Git branch (if in a Git repository).&lt;br/&gt;    *   `CARGO_TOML_HASH`: The SHA-256 hash of the `Cargo.toml` file.&lt;br/&gt;    *   `LIB_HASH`: The SHA-256 hash of the `src/lib.rs` file.&lt;br/&gt;    *   `BUILD_HASH`: The SHA-256 hash of the `build.rs` file itself.&lt;br/&gt;&lt;br/&gt;2.  **Rerun Conditions:** It tells Cargo when to re-run the build script. This ensures that the injected environment variables and any conditional compilation logic are up-to-date if relevant files change:&lt;br/&gt;    *   `Cargo.toml`&lt;br/&gt;    *   `src/lib.rs`&lt;br/&gt;    *   `build.rs`&lt;br/&gt;    *   `.git/HEAD` (to detect changes in the Git repository like new commits or branch switches).&lt;br/&gt;    *   `src/get_file_hash_core/src/online_relays_gps.csv` (conditionally, if the file exists).&lt;br/&gt;&lt;br/&gt;3.  **Conditional Nostr Event Publishing (Release Builds with `nostr` feature):**&lt;br/&gt;    If the project is being compiled in **release mode (`--release`)** and the **`nostr` feature is enabled (`--features nostr`)**, the `build.rs` script will connect to Nostr relays and publish events. This is intended for &amp;#34;deterministic Nostr event build examples&amp;#34; as indicated by the comments in the file.&lt;br/&gt;&lt;br/&gt;    *   **Relay Management:** It retrieves a list of default relay URLs. During event publishing, it identifies and removes &amp;#34;unfriendly&amp;#34; or unresponsive relays (e.g., those with timeout, connection issues, or spam blocks) from the list for subsequent publications.&lt;br/&gt;    *   **File Hashing and Key Generation:** For each Git-tracked file (when in a Git repository), it computes its SHA-256 hash. This hash is then used to derive a Nostr `SecretKey`.&lt;br/&gt;    *   **Event Creation:**&lt;br/&gt;        *   **Individual File Events:** For each Git-tracked file, a Nostr `text_note` event is created. This event includes tags for:&lt;br/&gt;            *   `#file`: The path of the file.&lt;br/&gt;            *   `#version`: The package version.&lt;br/&gt;            *   `#commit`: The Git commit hash (if in a Git repository).&lt;br/&gt;            *   `#branch`: The Git branch name (if in a Git repository).&lt;br/&gt;        *   **Metadata Event:** It publishes a metadata event using `get_file_hash_core::publish_metadata_event`.&lt;br/&gt;        *   **Linking Event (Build Manifest):** After processing all individual files, if any events were published, a final &amp;#34;build manifest&amp;#34; `text_note` event is created. This event links to all the individual file events that were published during the build using event tags.&lt;br/&gt;    *   **Output Storage:** The JSON representation of successfully published Nostr events (specifically the `EventId`) is saved to `~/.gnostr/build/{package_version}/{file_path_str_sanitized}/{hash}/{public_key}/{event_id}.json`. This provides a local record of what was published.&lt;br/&gt;&lt;br/&gt;### `publish_nostr_event_if_release` Function&lt;br/&gt;&lt;br/&gt;This asynchronous helper function is responsible for:&lt;br/&gt;*   Adding relays to the Nostr client.&lt;br/&gt;*   Connecting to relays.&lt;br/&gt;*   Signing the provided `EventBuilder` to create an `Event`.&lt;br/&gt;*   Sending the event to the configured relays.&lt;br/&gt;*   Logging success or failure for each relay.&lt;br/&gt;*   Identifying and removing unresponsive relays from the `relay_urls` list.&lt;br/&gt;*   Saving the published event&amp;#39;s JSON to the local filesystem.&lt;br/&gt;&lt;br/&gt;### `should_remove_relay` Function&lt;br/&gt;&lt;br/&gt;This helper function determines if a relay should be considered &amp;#34;unfriendly&amp;#34; or unresponsive based on common error messages received during Nostr event publication.&lt;br/&gt;&lt;br/&gt;## Usage&lt;br/&gt;&lt;br/&gt;To prevent &amp;#39;Too many open files&amp;#39; errors, especially during builds and tests involving numerous file operations or subprocesses (like `git ls-files` or parallel test execution), it may be necessary to increase the file descriptor limit.&lt;br/&gt;&lt;br/&gt;*   **For local development**: Run `ulimit -n 4096` in your terminal session before executing `cargo build` or `cargo test`. This setting is session-specific.&lt;br/&gt;*   **For CI environments**: The `.github/workflows/rust.yml` workflow is configured to set `ulimit -n 4096` for relevant test steps to ensure consistent execution.&lt;br/&gt;&lt;br/&gt;The values set by `build.rs` can be accessed in your Rust code (e.g., `src/lib.rs`) at compile time using the `env!` macro. For example:&lt;br/&gt;```rust&lt;br/&gt;pub const CARGO_PKG_VERSION: &amp;amp;str = env!(&amp;#34;CARGO_PKG_VERSION&amp;#34;);&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;The Nostr event publishing functionality of `build.rs` is primarily for release builds with the `nostr` feature enabled, allowing for the automatic, deterministic publication of project state to the Nostr network as part of the CI/CD pipeline.&lt;br/&gt;&lt;br/&gt;## Example Commands&lt;br/&gt;&lt;br/&gt;To interact with the `build.rs` script&amp;#39;s features, especially those related to Nostr event publishing, you can use the following `cargo` commands:&lt;br/&gt;&lt;br/&gt;*   **Build in release mode with Nostr feature (verbose output):**&lt;br/&gt;    ```bash&lt;br/&gt;    cargo build --release --workspace --features nostr -vv&lt;br/&gt;    ```&lt;br/&gt;&lt;br/&gt;*   **Run tests for `get_file_hash_core` sequentially with Nostr feature and verbose logging (as in CI):**&lt;br/&gt;    ```bash&lt;br/&gt;    RUST_LOG=info,nostr_sdk=debug,frost=debug cargo test -p get_file_hash_core --features nostr -- --test-threads 1 --nocapture&lt;br/&gt;    ```&lt;br/&gt;&lt;br/&gt;*   **Run all workspace tests in release mode with Nostr feature:**&lt;br/&gt;    ```bash&lt;br/&gt;    cargo test --workspace --release --features nostr&lt;br/&gt;    ```&lt;br/&gt;&lt;br/&gt;*   **Build `get_file_hash_core` in release mode with Nostr feature (very verbose output):**&lt;br/&gt;    ```bash&lt;br/&gt;    cargo build --release --features nostr -vv -p get_file_hash_core&lt;br/&gt;    ```&lt;br/&gt;&lt;br/&gt;*   **Run `get_file_hash_core` tests in release mode with Nostr feature (very verbose output):**&lt;br/&gt;    ```bash&lt;br/&gt;    cargo test --release --features nostr -vv -p get_file_hash_core&lt;br/&gt;    ```&lt;br/&gt;&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:25:50&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsvj4tzmxa682uqfcpw7x99ssfzdj67aqyles7a4khpgfu8hf0daqszyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr865fj8x4</id>
    
      <title>Nostr event nevent1qqsvj4tzmxa682uqfcpw7x99ssfzdj67aqyles7a4khpgfu8hf0daqszyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr865fj8x4</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsvj4tzmxa682uqfcpw7x99ssfzdj67aqyles7a4khpgfu8hf0daqszyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr865fj8x4" />
    <content type="html">
      plan-dist-manifest.json&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:25:34&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqst830950xm7jvt8uh6zm05hmwrv95q22lnh97suhzukfnm7t0fhlqzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86gt9kqn</id>
    
      <title type="html">name: Rust on: push: branches: [ &amp;#34;*&amp;#34; ] pull_request: ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqst830950xm7jvt8uh6zm05hmwrv95q22lnh97suhzukfnm7t0fhlqzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86gt9kqn" />
    <content type="html">
      name: Rust&lt;br/&gt;&lt;br/&gt;on:&lt;br/&gt;  push:&lt;br/&gt;    branches: [ &amp;#34;*&amp;#34; ]&lt;br/&gt;  pull_request:&lt;br/&gt;    branches: [ &amp;#34;*&amp;#34; ]&lt;br/&gt;&lt;br/&gt;env:&lt;br/&gt;  CARGO_TERM_COLOR: always&lt;br/&gt;  FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true&lt;br/&gt;  RUST_LOG: info&lt;br/&gt;&lt;br/&gt;jobs:&lt;br/&gt;  build:&lt;br/&gt;&lt;br/&gt;    runs-on: ${{ matrix.os }}&lt;br/&gt;    strategy:&lt;br/&gt;      matrix:&lt;br/&gt;        os: [ubuntu-latest, macos-15-intel, macos-latest, windows-latest]&lt;br/&gt;        features_args: [&amp;#34;&amp;#34;, &amp;#34;--no-default-features&amp;#34;, &amp;#34;--features nostr&amp;#34;]&lt;br/&gt;&lt;br/&gt;    steps:&lt;br/&gt;    - uses: actions/checkout@v4&lt;br/&gt;    - name: Install system deps (dbus)&lt;br/&gt;      if: runner.os == &amp;#39;Linux&amp;#39;&lt;br/&gt;      shell: bash&lt;br/&gt;      run: |&lt;br/&gt;        sudo apt-get update&lt;br/&gt;        sudo apt-get install -y pkg-config libdbus-1-dev&lt;br/&gt;    - name: Install protobuf (protoc)&lt;br/&gt;      shell: bash&lt;br/&gt;      run: |&lt;br/&gt;        set -euxo pipefail&lt;br/&gt;        if [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;macOS&amp;#34; ]]; then&lt;br/&gt;          brew update&lt;br/&gt;          brew install protobuf&lt;br/&gt;        elif [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;Linux&amp;#34; ]]; then&lt;br/&gt;          sudo apt-get update&lt;br/&gt;          sudo apt-get install -y protobuf-compiler&lt;br/&gt;        elif [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;Windows&amp;#34; ]]; then&lt;br/&gt;          choco install -y protoc&lt;br/&gt;        fi&lt;br/&gt;    - name: Build ${{ matrix.features_args }}&lt;br/&gt;      run: cargo build --workspace --verbose ${{ matrix.features_args }}&lt;br/&gt;    - name: Run workspace tests ${{ matrix.features_args }}&lt;br/&gt;      run: |&lt;br/&gt;        cargo test --workspace ${{ matrix.features_args }} -- --test-threads 1&lt;br/&gt;    - name: Run get_file_hash_core tests ${{ matrix.features_args }}&lt;br/&gt;      shell: bash&lt;br/&gt;      run: |&lt;br/&gt;        if [[ &amp;#34;${{ matrix.features_args }}&amp;#34; == &amp;#34;--features nostr&amp;#34; ]]; then&lt;br/&gt;          cargo test -p get_file_hash_core ${{ matrix.features_args }} -- --test-threads 1 --nocapture&lt;br/&gt;        else&lt;br/&gt;          cargo test -p get_file_hash_core ${{ matrix.features_args }} -- --test-threads 1&lt;br/&gt;        fi&lt;br/&gt;    - name: Run get_file_hash tests ${{ matrix.features_args }}&lt;br/&gt;      shell: bash&lt;br/&gt;      run: |&lt;br/&gt;        if [[ &amp;#34;${{ matrix.features_args }}&amp;#34; == &amp;#34;--features nostr&amp;#34; ]]; then&lt;br/&gt;          cargo test -p get_file_hash ${{ matrix.features_args }} -- --test-threads 1 --nocapture&lt;br/&gt;        else&lt;br/&gt;          cargo test -p get_file_hash ${{ matrix.features_args }} -- --test-threads 1&lt;br/&gt;        fi&lt;br/&gt;    - name: Build Release ${{ matrix.features_args }}&lt;br/&gt;      run: cargo build --workspace --release ${{ matrix.features_args }}&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:25:14&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqs0fpcvqrtlha48dkgsydpd3zq6srp3wkt2zup4nnayqf0eksf4hngzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86mh7vnw</id>
    
      <title type="html"># This file was autogenerated by dist: ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqs0fpcvqrtlha48dkgsydpd3zq6srp3wkt2zup4nnayqf0eksf4hngzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86mh7vnw" />
    <content type="html">
      # This file was autogenerated by dist: &lt;a href=&#34;https://axodotdev.github.io/cargo-dist&#34;&gt;https://axodotdev.github.io/cargo-dist&lt;/a&gt;&lt;br/&gt;#&lt;br/&gt;# Copyright 2022-2024, axodotdev&lt;br/&gt;# SPDX-License-Identifier: MIT or Apache-2.0&lt;br/&gt;#&lt;br/&gt;# CI that:&lt;br/&gt;#&lt;br/&gt;# * checks for a Git Tag that looks like a release&lt;br/&gt;# * builds artifacts with dist (archives, installers, hashes)&lt;br/&gt;# * uploads those artifacts to temporary workflow zip&lt;br/&gt;# * on success, uploads the artifacts to a GitHub Release&lt;br/&gt;#&lt;br/&gt;# Note that the GitHub Release will be created with a generated&lt;br/&gt;# title/body based on your changelogs.&lt;br/&gt;&lt;br/&gt;name: Release&lt;br/&gt;permissions:&lt;br/&gt;  &amp;#34;contents&amp;#34;: &amp;#34;write&amp;#34;&lt;br/&gt;&lt;br/&gt;# This task will run whenever you push a git tag that looks like a version&lt;br/&gt;# like &amp;#34;1.0.0&amp;#34;, &amp;#34;v0.1.0-prerelease.1&amp;#34;, &amp;#34;my-app/0.1.0&amp;#34;, &amp;#34;releases/v1.0.0&amp;#34;, etc.&lt;br/&gt;# Various formats will be parsed into a VERSION and an optional PACKAGE_NAME, where&lt;br/&gt;# PACKAGE_NAME must be the name of a Cargo package in your workspace, and VERSION&lt;br/&gt;# must be a Cargo-style SemVer Version (must have at least major.minor.patch).&lt;br/&gt;#&lt;br/&gt;# If PACKAGE_NAME is specified, then the announcement will be for that&lt;br/&gt;# package (erroring out if it doesn&amp;#39;t have the given version or isn&amp;#39;t dist-able).&lt;br/&gt;#&lt;br/&gt;# If PACKAGE_NAME isn&amp;#39;t specified, then the announcement will be for all&lt;br/&gt;# (dist-able) packages in the workspace with that version (this mode is&lt;br/&gt;# intended for workspaces with only one dist-able package, or with all dist-able&lt;br/&gt;# packages versioned/released in lockstep).&lt;br/&gt;#&lt;br/&gt;# If you push multiple tags at once, separate instances of this workflow will&lt;br/&gt;# spin up, creating an independent announcement for each one. However, GitHub&lt;br/&gt;# will hard limit this to 3 tags per commit, as it will assume more tags is a&lt;br/&gt;# mistake.&lt;br/&gt;#&lt;br/&gt;# If there&amp;#39;s a prerelease-style suffix to the version, then the release(s)&lt;br/&gt;# will be marked as a prerelease.&lt;br/&gt;on:&lt;br/&gt;  pull_request:&lt;br/&gt;  push:&lt;br/&gt;    tags:&lt;br/&gt;      - &amp;#39;**[0-9]&#43;.[0-9]&#43;.[0-9]&#43;*&amp;#39;&lt;br/&gt;&lt;br/&gt;jobs:&lt;br/&gt;  # Run &amp;#39;dist plan&amp;#39; (or host) to determine what tasks we need to do&lt;br/&gt;  install-deps:&lt;br/&gt;    runs-on: &amp;#34;ubuntu-22.04&amp;#34;&lt;br/&gt;    outputs:&lt;br/&gt;      val: ${{ steps.plan.outputs.manifest }}&lt;br/&gt;      tag: ${{ !github.event.pull_request &amp;amp;&amp;amp; github.ref_name || &amp;#39;&amp;#39; }}&lt;br/&gt;      tag-flag: ${{ !github.event.pull_request &amp;amp;&amp;amp; format(&amp;#39;--tag={0}&amp;#39;, github.ref_name) || &amp;#39;&amp;#39; }}&lt;br/&gt;      publishing: ${{ !github.event.pull_request }}&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;      - name: Install-deps&lt;br/&gt;        # we specify bash to get pipefail; it guards against the `curl` command&lt;br/&gt;        # failing. otherwise `sh` won&amp;#39;t catch that `curl` returned non-0&lt;br/&gt;        shell: bash&lt;br/&gt;        run: |&lt;br/&gt;          if [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;Linux&amp;#34; ]]; then&lt;br/&gt;            sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install -y pkg-config libdbus-1-dev protobuf-compiler&lt;br/&gt;          elif [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;macOS&amp;#34; ]]; then&lt;br/&gt;            brew install protobuf&lt;br/&gt;          fi&lt;br/&gt;  plan:&lt;br/&gt;    needs:&lt;br/&gt;      - install-deps&lt;br/&gt;    runs-on: &amp;#34;ubuntu-22.04&amp;#34;&lt;br/&gt;    outputs:&lt;br/&gt;      val: ${{ steps.plan.outputs.manifest }}&lt;br/&gt;      tag: ${{ !github.event.pull_request &amp;amp;&amp;amp; github.ref_name || &amp;#39;&amp;#39; }}&lt;br/&gt;      tag-flag: ${{ !github.event.pull_request &amp;amp;&amp;amp; format(&amp;#39;--tag={0}&amp;#39;, github.ref_name) || &amp;#39;&amp;#39; }}&lt;br/&gt;      publishing: ${{ !github.event.pull_request }}&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;      - name: Install dist&lt;br/&gt;        # we specify bash to get pipefail; it guards against the `curl` command&lt;br/&gt;        # failing. otherwise `sh` won&amp;#39;t catch that `curl` returned non-0&lt;br/&gt;        shell: bash&lt;br/&gt;        run: &amp;#34;curl --proto &amp;#39;=https&amp;#39; --tlsv1.2 -LsSf &lt;a href=&#34;https://github.com/axodotdev/cargo-dist/releases/download/v0.30.3/cargo-dist-installer.sh&#34;&gt;https://github.com/axodotdev/cargo-dist/releases/download/v0.30.3/cargo-dist-installer.sh&lt;/a&gt; | sh&amp;#34;&lt;br/&gt;      - name: Cache dist&lt;br/&gt;        uses: actions/upload-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: cargo-dist-cache&lt;br/&gt;          path: ~/.cargo/bin/dist&lt;br/&gt;      # sure would be cool if github gave us proper conditionals...&lt;br/&gt;      # so here&amp;#39;s a doubly-nested ternary-via-truthiness to try to provide the best possible&lt;br/&gt;      # functionality based on whether this is a pull_request, and whether it&amp;#39;s from a fork.&lt;br/&gt;      # (PRs run on the *source* but secrets are usually on the *target* -- that&amp;#39;s *good*&lt;br/&gt;      # but also really annoying to build CI around when it needs secrets to work right.)&lt;br/&gt;      - id: plan&lt;br/&gt;        run: |&lt;br/&gt;          dist ${{ (!github.event.pull_request &amp;amp;&amp;amp; format(&amp;#39;host --steps=create --tag={0}&amp;#39;, github.ref_name)) || &amp;#39;plan&amp;#39; }} --output-format=json &amp;gt; plan-dist-manifest.json&lt;br/&gt;          echo &amp;#34;dist ran successfully&amp;#34;&lt;br/&gt;          cat plan-dist-manifest.json&lt;br/&gt;          echo &amp;#34;manifest=$(jq -c &amp;#34;.&amp;#34; plan-dist-manifest.json)&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;      - name: &amp;#34;Upload dist-manifest.json&amp;#34;&lt;br/&gt;        uses: actions/upload-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: artifacts-plan-dist-manifest&lt;br/&gt;          path: plan-dist-manifest.json&lt;br/&gt;&lt;br/&gt;  # Build and packages all the platform-specific things&lt;br/&gt;  build-local-artifacts:&lt;br/&gt;    name: build-local-artifacts (${{ join(matrix.targets, &amp;#39;, &amp;#39;) }})&lt;br/&gt;    # Let the initial task tell us to not run (currently very blunt)&lt;br/&gt;    needs:&lt;br/&gt;      - plan&lt;br/&gt;      - install-deps&lt;br/&gt;    if: ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix.include != null &amp;amp;&amp;amp; (needs.plan.outputs.publishing == &amp;#39;true&amp;#39; || fromJson(needs.plan.outputs.val).ci.github.pr_run_mode == &amp;#39;upload&amp;#39;) }}&lt;br/&gt;    strategy:&lt;br/&gt;      fail-fast: false&lt;br/&gt;      # Target platforms/runners are computed by dist in create-release.&lt;br/&gt;      # Each member of the matrix has the following arguments:&lt;br/&gt;      #&lt;br/&gt;      # - runner: the github runner&lt;br/&gt;      # - dist-args: cli flags to pass to dist&lt;br/&gt;      # - install-dist: expression to run to install dist on the runner&lt;br/&gt;      #&lt;br/&gt;      # Typically there will be:&lt;br/&gt;      # - 1 &amp;#34;global&amp;#34; task that builds universal installers&lt;br/&gt;      # - N &amp;#34;local&amp;#34; tasks that build each platform&amp;#39;s binaries and platform-specific installers&lt;br/&gt;      matrix: ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix }}&lt;br/&gt;    runs-on: ${{ matrix.runner }}&lt;br/&gt;    container: ${{ matrix.container &amp;amp;&amp;amp; matrix.container.image || null }}&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;      BUILD_MANIFEST_NAME: target/distrib/${{ join(matrix.targets, &amp;#39;-&amp;#39;) }}-dist-manifest.json&lt;br/&gt;    steps:&lt;br/&gt;      - name: enable windows longpaths&lt;br/&gt;        run: |&lt;br/&gt;          git config --global core.longpaths true&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;      - name: Install Rust non-interactively if not already installed&lt;br/&gt;        if: ${{ matrix.container }}&lt;br/&gt;        run: |&lt;br/&gt;          if ! command -v cargo &amp;gt; /dev/null 2&amp;gt;&amp;amp;1; then&lt;br/&gt;            curl --proto &amp;#39;=https&amp;#39; --tlsv1.2 -sSf &lt;a href=&#34;https://sh.rustup.rs&#34;&gt;https://sh.rustup.rs&lt;/a&gt; | sh -s -- -y&lt;br/&gt;            echo &amp;#34;$HOME/.cargo/bin&amp;#34; &amp;gt;&amp;gt; $GITHUB_PATH&lt;br/&gt;          fi&lt;br/&gt;      - name: Install dist&lt;br/&gt;        run: ${{ matrix.install_dist.run }}&lt;br/&gt;      # Get the dist-manifest&lt;br/&gt;      - name: Fetch local artifacts&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          pattern: artifacts-*&lt;br/&gt;          path: target/distrib/&lt;br/&gt;          merge-multiple: true&lt;br/&gt;      - name: Install dependencies&lt;br/&gt;        run: |&lt;br/&gt;          ${{ matrix.packages_install }}&lt;br/&gt;      - name: Build artifacts&lt;br/&gt;        run: |&lt;br/&gt;          # Actually do builds and make zips and whatnot&lt;br/&gt;          dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} &amp;gt; dist-manifest.json&lt;br/&gt;          echo &amp;#34;dist ran successfully&amp;#34;&lt;br/&gt;      - id: cargo-dist&lt;br/&gt;        name: Post-build&lt;br/&gt;        # We force bash here just because github makes it really hard to get values up&lt;br/&gt;        # to &amp;#34;real&amp;#34; actions without writing to env-vars, and writing to env-vars has&lt;br/&gt;        # inconsistent syntax between shell and powershell.&lt;br/&gt;        shell: bash&lt;br/&gt;        run: |&lt;br/&gt;          # Parse out what we just built and upload it to scratch storage&lt;br/&gt;          echo &amp;#34;paths&amp;lt;&amp;lt;EOF&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;          dist print-upload-files-from-manifest --manifest dist-manifest.json &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;          echo &amp;#34;EOF&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;&lt;br/&gt;          cp dist-manifest.json &amp;#34;$BUILD_MANIFEST_NAME&amp;#34;&lt;br/&gt;      - name: &amp;#34;Upload artifacts&amp;#34;&lt;br/&gt;        uses: actions/upload-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: artifacts-build-local-${{ join(matrix.targets, &amp;#39;_&amp;#39;) }}&lt;br/&gt;          path: |&lt;br/&gt;            ${{ steps.cargo-dist.outputs.paths }}&lt;br/&gt;            ${{ env.BUILD_MANIFEST_NAME }}&lt;br/&gt;&lt;br/&gt;  # Build and package all the platform-agnostic(ish) things&lt;br/&gt;  build-global-artifacts:&lt;br/&gt;    needs:&lt;br/&gt;      - plan&lt;br/&gt;      - install-deps&lt;br/&gt;      - build-local-artifacts&lt;br/&gt;    runs-on: &amp;#34;ubuntu-22.04&amp;#34;&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;      BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;      - name: Install cached dist&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: cargo-dist-cache&lt;br/&gt;          path: ~/.cargo/bin/&lt;br/&gt;      - run: chmod &#43;x ~/.cargo/bin/dist&lt;br/&gt;      # Get all the local artifacts for the global tasks to use (for e.g. checksums)&lt;br/&gt;      - name: Fetch local artifacts&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          pattern: artifacts-*&lt;br/&gt;          path: target/distrib/&lt;br/&gt;          merge-multiple: true&lt;br/&gt;      - id: cargo-dist&lt;br/&gt;        shell: bash&lt;br/&gt;        run: |&lt;br/&gt;          dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json &amp;#34;--artifacts=global&amp;#34; &amp;gt; dist-manifest.json&lt;br/&gt;          echo &amp;#34;dist ran successfully&amp;#34;&lt;br/&gt;&lt;br/&gt;          # Parse out what we just built and upload it to scratch storage&lt;br/&gt;          echo &amp;#34;paths&amp;lt;&amp;lt;EOF&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;          jq --raw-output &amp;#34;.upload_files[]&amp;#34; dist-manifest.json &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;          echo &amp;#34;EOF&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;&lt;br/&gt;          cp dist-manifest.json &amp;#34;$BUILD_MANIFEST_NAME&amp;#34;&lt;br/&gt;      - name: &amp;#34;Upload artifacts&amp;#34;&lt;br/&gt;        uses: actions/upload-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: artifacts-build-global&lt;br/&gt;          path: |&lt;br/&gt;            ${{ steps.cargo-dist.outputs.paths }}&lt;br/&gt;            ${{ env.BUILD_MANIFEST_NAME }}&lt;br/&gt;  # Determines if we should publish/announce&lt;br/&gt;  host:&lt;br/&gt;    needs:&lt;br/&gt;      - plan&lt;br/&gt;      - install-deps&lt;br/&gt;      - build-local-artifacts&lt;br/&gt;      - build-global-artifacts&lt;br/&gt;    # Only run if we&amp;#39;re &amp;#34;publishing&amp;#34;, and only if plan, local and global didn&amp;#39;t fail (skipped is fine)&lt;br/&gt;    if: ${{ always() &amp;amp;&amp;amp; needs.plan.result == &amp;#39;success&amp;#39; &amp;amp;&amp;amp; needs.plan.outputs.publishing == &amp;#39;true&amp;#39; &amp;amp;&amp;amp; (needs.build-global-artifacts.result == &amp;#39;skipped&amp;#39; || needs.build-global-artifacts.result == &amp;#39;success&amp;#39;) &amp;amp;&amp;amp; (needs.build-local-artifacts.result == &amp;#39;skipped&amp;#39; || needs.build-local-artifacts.result == &amp;#39;success&amp;#39;) }}&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;    runs-on: &amp;#34;ubuntu-22.04&amp;#34;&lt;br/&gt;    outputs:&lt;br/&gt;      val: ${{ steps.host.outputs.manifest }}&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;      - name: Install cached dist&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: cargo-dist-cache&lt;br/&gt;          path: ~/.cargo/bin/&lt;br/&gt;      - run: chmod &#43;x ~/.cargo/bin/dist&lt;br/&gt;      # Fetch artifacts from scratch-storage&lt;br/&gt;      - name: Fetch artifacts&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          pattern: artifacts-*&lt;br/&gt;          path: target/distrib/&lt;br/&gt;          merge-multiple: true&lt;br/&gt;      - id: host&lt;br/&gt;        shell: bash&lt;br/&gt;        run: |&lt;br/&gt;          dist host ${{ needs.plan.outputs.tag-flag }} --steps=upload --steps=release --output-format=json &amp;gt; dist-manifest.json&lt;br/&gt;          echo &amp;#34;artifacts uploaded and released successfully&amp;#34;&lt;br/&gt;          cat dist-manifest.json&lt;br/&gt;          echo &amp;#34;manifest=$(jq -c &amp;#34;.&amp;#34; dist-manifest.json)&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;      - name: &amp;#34;Upload dist-manifest.json&amp;#34;&lt;br/&gt;        uses: actions/upload-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          # Overwrite the previous copy&lt;br/&gt;          name: artifacts-dist-manifest&lt;br/&gt;          path: dist-manifest.json&lt;br/&gt;      # Create a GitHub Release while uploading all files to it&lt;br/&gt;      - name: &amp;#34;Download GitHub Artifacts&amp;#34;&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          pattern: artifacts-*&lt;br/&gt;          path: artifacts&lt;br/&gt;          merge-multiple: true&lt;br/&gt;      - name: Cleanup&lt;br/&gt;        run: |&lt;br/&gt;          # Remove the granular manifests&lt;br/&gt;          rm -f artifacts/*-dist-manifest.json&lt;br/&gt;      - name: Create GitHub Release&lt;br/&gt;        env:&lt;br/&gt;          PRERELEASE_FLAG: &amp;#34;${{ fromJson(steps.host.outputs.manifest).announcement_is_prerelease &amp;amp;&amp;amp; &amp;#39;--prerelease&amp;#39; || &amp;#39;&amp;#39; }}&amp;#34;&lt;br/&gt;          ANNOUNCEMENT_TITLE: &amp;#34;${{ fromJson(steps.host.outputs.manifest).announcement_title }}&amp;#34;&lt;br/&gt;          ANNOUNCEMENT_BODY: &amp;#34;${{ fromJson(steps.host.outputs.manifest).announcement_github_body }}&amp;#34;&lt;br/&gt;          RELEASE_COMMIT: &amp;#34;${{ github.sha }}&amp;#34;&lt;br/&gt;        run: |&lt;br/&gt;          # Write and read notes from a file to avoid quoting breaking things&lt;br/&gt;          echo &amp;#34;$ANNOUNCEMENT_BODY&amp;#34; &amp;gt; $RUNNER_TEMP/notes.txt&lt;br/&gt;&lt;br/&gt;          gh release create &amp;#34;${{ needs.plan.outputs.tag }}&amp;#34; --target &amp;#34;$RELEASE_COMMIT&amp;#34; $PRERELEASE_FLAG --title &amp;#34;$ANNOUNCEMENT_TITLE&amp;#34; --notes-file &amp;#34;$RUNNER_TEMP/notes.txt&amp;#34; artifacts/*&lt;br/&gt;&lt;br/&gt;  publish-homebrew-formula:&lt;br/&gt;    needs:&lt;br/&gt;      - plan&lt;br/&gt;      - host&lt;br/&gt;      - install-deps&lt;br/&gt;      - build-local-artifacts&lt;br/&gt;      - build-global-artifacts&lt;br/&gt;    runs-on: &amp;#34;ubuntu-22.04&amp;#34;&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;      PLAN: ${{ needs.plan.outputs.val }}&lt;br/&gt;      GITHUB_USER: &amp;#34;axo bot&amp;#34;&lt;br/&gt;      GITHUB_EMAIL: &amp;#34;admin&#43;bot@axo.dev&amp;#34;&lt;br/&gt;    if: ${{ !fromJson(needs.plan.outputs.val).announcement_is_prerelease || fromJson(needs.plan.outputs.val).publish_prereleases }}&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: true&lt;br/&gt;          repository: &amp;#34;gnostr-org/homebrew-gnostr&amp;#34;&lt;br/&gt;          token: ${{ secrets.HOMEBREW_TAP_TOKEN }}&lt;br/&gt;      # So we have access to the formula&lt;br/&gt;      - name: Fetch homebrew formulae&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          pattern: artifacts-*&lt;br/&gt;          path: Formula/&lt;br/&gt;          merge-multiple: true&lt;br/&gt;      # This is extra complex because you can make your Formula name not match your app name&lt;br/&gt;      # so we need to find releases with a *.rb file, and publish with that filename.&lt;br/&gt;      - name: Commit formula files&lt;br/&gt;        run: |&lt;br/&gt;          git config --global user.name &amp;#34;${GITHUB_USER}&amp;#34;&lt;br/&gt;          git config --global user.email &amp;#34;${GITHUB_EMAIL}&amp;#34;&lt;br/&gt;&lt;br/&gt;          for release in $(echo &amp;#34;$PLAN&amp;#34; | jq --compact-output &amp;#39;.releases[] | select([.artifacts[] | endswith(&amp;#34;.rb&amp;#34;)] | any)&amp;#39;); do&lt;br/&gt;            filename=$(echo &amp;#34;$release&amp;#34; | jq &amp;#39;.artifacts[] | select(endswith(&amp;#34;.rb&amp;#34;))&amp;#39; --raw-output)&lt;br/&gt;            name=$(echo &amp;#34;$filename&amp;#34; | sed &amp;#34;s/\.rb$//&amp;#34;)&lt;br/&gt;            version=$(echo &amp;#34;$release&amp;#34; | jq .app_version --raw-output)&lt;br/&gt;&lt;br/&gt;            export PATH=&amp;#34;/home/linuxbrew/.linuxbrew/bin:$PATH&amp;#34;&lt;br/&gt;            brew update&lt;br/&gt;            # We avoid reformatting user-provided data such as the app description and homepage.&lt;br/&gt;            brew style --except-cops FormulaAudit/Homepage,FormulaAudit/Desc,FormulaAuditStrict --fix &amp;#34;Formula/${filename}&amp;#34; || true&lt;br/&gt;&lt;br/&gt;            git add &amp;#34;Formula/${filename}&amp;#34;&lt;br/&gt;            git commit -m &amp;#34;${name} ${version}&amp;#34;&lt;br/&gt;          done&lt;br/&gt;          git push&lt;br/&gt;&lt;br/&gt;  announce:&lt;br/&gt;    needs:&lt;br/&gt;      - plan&lt;br/&gt;      - install-deps&lt;br/&gt;      - build-local-artifacts&lt;br/&gt;      - build-global-artifacts&lt;br/&gt;      - host&lt;br/&gt;      - publish-homebrew-formula&lt;br/&gt;    # use &amp;#34;always() &amp;amp;&amp;amp; ...&amp;#34; to allow us to wait for all publish jobs while&lt;br/&gt;    # still allowing individual publish jobs to skip themselves (for prereleases).&lt;br/&gt;    # &amp;#34;host&amp;#34; however must run to completion, no skipping allowed!&lt;br/&gt;    if: ${{ always() &amp;amp;&amp;amp; needs.host.result == &amp;#39;success&amp;#39; &amp;amp;&amp;amp; (needs.publish-homebrew-formula.result == &amp;#39;skipped&amp;#39; || needs.publish-homebrew-formula.result == &amp;#39;success&amp;#39;) }}&lt;br/&gt;    runs-on: &amp;#34;ubuntu-22.04&amp;#34;&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:24:54&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqs8n24pxdajerf82mmwt9rn3ppqvt5h5emvxvqtych5xvjne2vptmczyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86hwc6c0</id>
    
      <title type="html"># `build.rs` Documentation This document explains the ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqs8n24pxdajerf82mmwt9rn3ppqvt5h5emvxvqtych5xvjne2vptmczyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86hwc6c0" />
    <content type="html">
      # `build.rs` Documentation&lt;br/&gt;&lt;br/&gt;This document explains the functionality of the `build.rs` script in this project. The `build.rs` script is a special Rust file that, if present, Cargo will compile and run *before* compiling the rest of your package. It&amp;#39;s typically used for tasks that need to be performed during the build process, such as generating code, setting environment variables, or performing conditional compilation.&lt;br/&gt;&lt;br/&gt;## Core Functionality&lt;br/&gt;&lt;br/&gt;The `build.rs` script in this project performs the following key functions:&lt;br/&gt;&lt;br/&gt;1.  **Environment Variable Injection:** It computes various project-related values at compile time and injects them as environment variables (`CARGO_RUSTC_ENV=...`) that can be accessed by the main crate using `env!(&amp;#34;VAR_NAME&amp;#34;)`. This includes:&lt;br/&gt;    *   `CARGO_PKG_NAME`: The name of the current package (from `Cargo.toml`).&lt;br/&gt;    *   `CARGO_PKG_VERSION`: The version of the current package (from `Cargo.toml`).&lt;br/&gt;    *   `GIT_COMMIT_HASH`: The full commit hash of the current Git HEAD (if in a Git repository).&lt;br/&gt;    *   `GIT_BRANCH`: The name of the current Git branch (if in a Git repository).&lt;br/&gt;    *   `CARGO_TOML_HASH`: The SHA-256 hash of the `Cargo.toml` file.&lt;br/&gt;    *   `LIB_HASH`: The SHA-256 hash of the `src/lib.rs` file.&lt;br/&gt;    *   `BUILD_HASH`: The SHA-256 hash of the `build.rs` file itself.&lt;br/&gt;&lt;br/&gt;2.  **Rerun Conditions:** It tells Cargo when to re-run the build script. This ensures that the injected environment variables and any conditional compilation logic are up-to-date if relevant files change:&lt;br/&gt;    *   `Cargo.toml`&lt;br/&gt;    *   `src/lib.rs`&lt;br/&gt;    *   `build.rs`&lt;br/&gt;    *   `.git/HEAD` (to detect changes in the Git repository like new commits or branch switches).&lt;br/&gt;    *   `src/get_file_hash_core/src/online_relays_gps.csv` (conditionally, if the file exists).&lt;br/&gt;&lt;br/&gt;3.  **Conditional Nostr Event Publishing (Release Builds with `nostr` feature):**&lt;br/&gt;    If the project is being compiled in **release mode (`--release`)** and the **`nostr` feature is enabled (`--features nostr`)**, the `build.rs` script will connect to Nostr relays and publish events. This is intended for &amp;#34;deterministic Nostr event build examples&amp;#34; as indicated by the comments in the file.&lt;br/&gt;&lt;br/&gt;    *   **Relay Management:** It retrieves a list of default relay URLs. During event publishing, it identifies and removes &amp;#34;unfriendly&amp;#34; or unresponsive relays (e.g., those with timeout, connection issues, or spam blocks) from the list for subsequent publications.&lt;br/&gt;    *   **File Hashing and Key Generation:** For each Git-tracked file (when in a Git repository), it computes its SHA-256 hash. This hash is then used to derive a Nostr `SecretKey`.&lt;br/&gt;    *   **Event Creation:**&lt;br/&gt;        *   **Individual File Events:** For each Git-tracked file, a Nostr `text_note` event is created. This event includes tags for:&lt;br/&gt;            *   `#file`: The path of the file.&lt;br/&gt;            *   `#version`: The package version.&lt;br/&gt;            *   `#commit`: The Git commit hash (if in a Git repository).&lt;br/&gt;            *   `#branch`: The Git branch name (if in a Git repository).&lt;br/&gt;        *   **Metadata Event:** It publishes a metadata event using `get_file_hash_core::publish_metadata_event`.&lt;br/&gt;        *   **Linking Event (Build Manifest):** After processing all individual files, if any events were published, a final &amp;#34;build manifest&amp;#34; `text_note` event is created. This event links to all the individual file events that were published during the build using event tags.&lt;br/&gt;    *   **Output Storage:** The JSON representation of successfully published Nostr events (specifically the `EventId`) is saved to `~/.gnostr/build/{package_version}/{file_path_str_sanitized}/{hash}/{public_key}/{event_id}.json`. This provides a local record of what was published.&lt;br/&gt;&lt;br/&gt;### `publish_nostr_event_if_release` Function&lt;br/&gt;&lt;br/&gt;This asynchronous helper function is responsible for:&lt;br/&gt;*   Adding relays to the Nostr client.&lt;br/&gt;*   Connecting to relays.&lt;br/&gt;*   Signing the provided `EventBuilder` to create an `Event`.&lt;br/&gt;*   Sending the event to the configured relays.&lt;br/&gt;*   Logging success or failure for each relay.&lt;br/&gt;*   Identifying and removing unresponsive relays from the `relay_urls` list.&lt;br/&gt;*   Saving the published event&amp;#39;s JSON to the local filesystem.&lt;br/&gt;&lt;br/&gt;### `should_remove_relay` Function&lt;br/&gt;&lt;br/&gt;This helper function determines if a relay should be considered &amp;#34;unfriendly&amp;#34; or unresponsive based on common error messages received during Nostr event publication.&lt;br/&gt;&lt;br/&gt;## Usage&lt;br/&gt;&lt;br/&gt;To prevent &amp;#39;Too many open files&amp;#39; errors, especially during builds and tests involving numerous file operations or subprocesses (like `git ls-files` or parallel test execution), it may be necessary to increase the file descriptor limit.&lt;br/&gt;&lt;br/&gt;*   **For local development**: Run `ulimit -n 4096` in your terminal session before executing `cargo build` or `cargo test`. This setting is session-specific.&lt;br/&gt;*   **For CI environments**: The `.github/workflows/rust.yml` workflow is configured to set `ulimit -n 4096` for relevant test steps to ensure consistent execution.&lt;br/&gt;&lt;br/&gt;The values set by `build.rs` can be accessed in your Rust code (e.g., `src/lib.rs`) at compile time using the `env!` macro. For example:&lt;br/&gt;```rust&lt;br/&gt;pub const CARGO_PKG_VERSION: &amp;amp;str = env!(&amp;#34;CARGO_PKG_VERSION&amp;#34;);&lt;br/&gt;```&lt;br/&gt;&lt;br/&gt;The Nostr event publishing functionality of `build.rs` is primarily for release builds with the `nostr` feature enabled, allowing for the automatic, deterministic publication of project state to the Nostr network as part of the CI/CD pipeline.&lt;br/&gt;&lt;br/&gt;## Example Commands&lt;br/&gt;&lt;br/&gt;To interact with the `build.rs` script&amp;#39;s features, especially those related to Nostr event publishing, you can use the following `cargo` commands:&lt;br/&gt;&lt;br/&gt;*   **Build in release mode with Nostr feature (verbose output):**&lt;br/&gt;    ```bash&lt;br/&gt;    cargo build --release --workspace --features nostr -vv&lt;br/&gt;    ```&lt;br/&gt;&lt;br/&gt;*   **Run tests for `get_file_hash_core` sequentially with Nostr feature and verbose logging (as in CI):**&lt;br/&gt;    ```bash&lt;br/&gt;    RUST_LOG=info,nostr_sdk=debug,frost=debug cargo test -p get_file_hash_core --features nostr -- --test-threads 1 --nocapture&lt;br/&gt;    ```&lt;br/&gt;&lt;br/&gt;*   **Run all workspace tests in release mode with Nostr feature:**&lt;br/&gt;    ```bash&lt;br/&gt;    cargo test --workspace --release --features nostr&lt;br/&gt;    ```&lt;br/&gt;&lt;br/&gt;*   **Build `get_file_hash_core` in release mode with Nostr feature (very verbose output):**&lt;br/&gt;    ```bash&lt;br/&gt;    cargo build --release --features nostr -vv -p get_file_hash_core&lt;br/&gt;    ```&lt;br/&gt;&lt;br/&gt;*   **Run `get_file_hash_core` tests in release mode with Nostr feature (very verbose output):**&lt;br/&gt;    ```bash&lt;br/&gt;    cargo test --release --features nostr -vv -p get_file_hash_core&lt;br/&gt;    ```&lt;br/&gt;&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:24:24&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsx9tzem4gatqx5gqndh94ldpazym0edll3d9yuzq8zvhf3ad9z48czyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86lz0p2e</id>
    
      <title>Nostr event nevent1qqsx9tzem4gatqx5gqndh94ldpazym0edll3d9yuzq8zvhf3ad9z48czyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86lz0p2e</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsx9tzem4gatqx5gqndh94ldpazym0edll3d9yuzq8zvhf3ad9z48czyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86lz0p2e" />
    <content type="html">
      plan-dist-manifest.json&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:24:11&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsqw65yukylkjlzzszqlhflrj3vkm25mxa6hxrf93fuf6yl2ul3m5gzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86vx6jta</id>
    
      <title type="html">name: Rust on: push: branches: [ &amp;#34;*&amp;#34; ] pull_request: ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsqw65yukylkjlzzszqlhflrj3vkm25mxa6hxrf93fuf6yl2ul3m5gzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86vx6jta" />
    <content type="html">
      name: Rust&lt;br/&gt;&lt;br/&gt;on:&lt;br/&gt;  push:&lt;br/&gt;    branches: [ &amp;#34;*&amp;#34; ]&lt;br/&gt;  pull_request:&lt;br/&gt;    branches: [ &amp;#34;*&amp;#34; ]&lt;br/&gt;&lt;br/&gt;env:&lt;br/&gt;  CARGO_TERM_COLOR: always&lt;br/&gt;  FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true&lt;br/&gt;  RUST_LOG: info&lt;br/&gt;&lt;br/&gt;jobs:&lt;br/&gt;  build:&lt;br/&gt;&lt;br/&gt;    runs-on: ${{ matrix.os }}&lt;br/&gt;    strategy:&lt;br/&gt;      matrix:&lt;br/&gt;        os: [ubuntu-latest, macos-15-intel, macos-latest, windows-latest]&lt;br/&gt;        features_args: [&amp;#34;&amp;#34;, &amp;#34;--no-default-features&amp;#34;, &amp;#34;--features nostr&amp;#34;]&lt;br/&gt;&lt;br/&gt;    steps:&lt;br/&gt;    - uses: actions/checkout@v4&lt;br/&gt;    - name: Install system deps (dbus)&lt;br/&gt;      if: runner.os == &amp;#39;Linux&amp;#39;&lt;br/&gt;      shell: bash&lt;br/&gt;      run: |&lt;br/&gt;        sudo apt-get update&lt;br/&gt;        sudo apt-get install -y pkg-config libdbus-1-dev&lt;br/&gt;    - name: Install protobuf (protoc)&lt;br/&gt;      shell: bash&lt;br/&gt;      run: |&lt;br/&gt;        set -euxo pipefail&lt;br/&gt;        if [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;macOS&amp;#34; ]]; then&lt;br/&gt;          brew update&lt;br/&gt;          brew install protobuf&lt;br/&gt;        elif [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;Linux&amp;#34; ]]; then&lt;br/&gt;          sudo apt-get update&lt;br/&gt;          sudo apt-get install -y protobuf-compiler&lt;br/&gt;        elif [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;Windows&amp;#34; ]]; then&lt;br/&gt;          choco install -y protoc&lt;br/&gt;        fi&lt;br/&gt;    - name: Build ${{ matrix.features_args }}&lt;br/&gt;      run: cargo build --workspace --verbose ${{ matrix.features_args }}&lt;br/&gt;    - name: Run workspace tests ${{ matrix.features_args }}&lt;br/&gt;      run: |&lt;br/&gt;        cargo test --workspace ${{ matrix.features_args }} -- --test-threads 1&lt;br/&gt;    - name: Run get_file_hash_core tests ${{ matrix.features_args }}&lt;br/&gt;      shell: bash&lt;br/&gt;      run: |&lt;br/&gt;        if [[ &amp;#34;${{ matrix.features_args }}&amp;#34; == &amp;#34;--features nostr&amp;#34; ]]; then&lt;br/&gt;          cargo test -p get_file_hash_core ${{ matrix.features_args }} -- --test-threads 1 --nocapture&lt;br/&gt;        else&lt;br/&gt;          cargo test -p get_file_hash_core ${{ matrix.features_args }} -- --test-threads 1&lt;br/&gt;        fi&lt;br/&gt;    - name: Run get_file_hash tests ${{ matrix.features_args }}&lt;br/&gt;      shell: bash&lt;br/&gt;      run: |&lt;br/&gt;        if [[ &amp;#34;${{ matrix.features_args }}&amp;#34; == &amp;#34;--features nostr&amp;#34; ]]; then&lt;br/&gt;          cargo test -p get_file_hash ${{ matrix.features_args }} -- --test-threads 1 --nocapture&lt;br/&gt;        else&lt;br/&gt;          cargo test -p get_file_hash ${{ matrix.features_args }} -- --test-threads 1&lt;br/&gt;        fi&lt;br/&gt;    - name: Build Release ${{ matrix.features_args }}&lt;br/&gt;      run: cargo build --workspace --release ${{ matrix.features_args }}&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:23:55&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqszq7flv5ljmmgdqqr49lkuhpxn0ksm85my2wcmg486wtvhn73kr0gzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86x49hqm</id>
    
      <title type="html"># This file was autogenerated by dist: ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqszq7flv5ljmmgdqqr49lkuhpxn0ksm85my2wcmg486wtvhn73kr0gzyzy9snqsnsnqf3lalz7t63v2t5syzxgu6v2n4af8w2m4elwl0qr86x49hqm" />
    <content type="html">
      # This file was autogenerated by dist: &lt;a href=&#34;https://axodotdev.github.io/cargo-dist&#34;&gt;https://axodotdev.github.io/cargo-dist&lt;/a&gt;&lt;br/&gt;#&lt;br/&gt;# Copyright 2022-2024, axodotdev&lt;br/&gt;# SPDX-License-Identifier: MIT or Apache-2.0&lt;br/&gt;#&lt;br/&gt;# CI that:&lt;br/&gt;#&lt;br/&gt;# * checks for a Git Tag that looks like a release&lt;br/&gt;# * builds artifacts with dist (archives, installers, hashes)&lt;br/&gt;# * uploads those artifacts to temporary workflow zip&lt;br/&gt;# * on success, uploads the artifacts to a GitHub Release&lt;br/&gt;#&lt;br/&gt;# Note that the GitHub Release will be created with a generated&lt;br/&gt;# title/body based on your changelogs.&lt;br/&gt;&lt;br/&gt;name: Release&lt;br/&gt;permissions:&lt;br/&gt;  &amp;#34;contents&amp;#34;: &amp;#34;write&amp;#34;&lt;br/&gt;&lt;br/&gt;# This task will run whenever you push a git tag that looks like a version&lt;br/&gt;# like &amp;#34;1.0.0&amp;#34;, &amp;#34;v0.1.0-prerelease.1&amp;#34;, &amp;#34;my-app/0.1.0&amp;#34;, &amp;#34;releases/v1.0.0&amp;#34;, etc.&lt;br/&gt;# Various formats will be parsed into a VERSION and an optional PACKAGE_NAME, where&lt;br/&gt;# PACKAGE_NAME must be the name of a Cargo package in your workspace, and VERSION&lt;br/&gt;# must be a Cargo-style SemVer Version (must have at least major.minor.patch).&lt;br/&gt;#&lt;br/&gt;# If PACKAGE_NAME is specified, then the announcement will be for that&lt;br/&gt;# package (erroring out if it doesn&amp;#39;t have the given version or isn&amp;#39;t dist-able).&lt;br/&gt;#&lt;br/&gt;# If PACKAGE_NAME isn&amp;#39;t specified, then the announcement will be for all&lt;br/&gt;# (dist-able) packages in the workspace with that version (this mode is&lt;br/&gt;# intended for workspaces with only one dist-able package, or with all dist-able&lt;br/&gt;# packages versioned/released in lockstep).&lt;br/&gt;#&lt;br/&gt;# If you push multiple tags at once, separate instances of this workflow will&lt;br/&gt;# spin up, creating an independent announcement for each one. However, GitHub&lt;br/&gt;# will hard limit this to 3 tags per commit, as it will assume more tags is a&lt;br/&gt;# mistake.&lt;br/&gt;#&lt;br/&gt;# If there&amp;#39;s a prerelease-style suffix to the version, then the release(s)&lt;br/&gt;# will be marked as a prerelease.&lt;br/&gt;on:&lt;br/&gt;  pull_request:&lt;br/&gt;  push:&lt;br/&gt;    tags:&lt;br/&gt;      - &amp;#39;**[0-9]&#43;.[0-9]&#43;.[0-9]&#43;*&amp;#39;&lt;br/&gt;&lt;br/&gt;jobs:&lt;br/&gt;  # Run &amp;#39;dist plan&amp;#39; (or host) to determine what tasks we need to do&lt;br/&gt;  install-deps:&lt;br/&gt;    runs-on: &amp;#34;ubuntu-22.04&amp;#34;&lt;br/&gt;    outputs:&lt;br/&gt;      val: ${{ steps.plan.outputs.manifest }}&lt;br/&gt;      tag: ${{ !github.event.pull_request &amp;amp;&amp;amp; github.ref_name || &amp;#39;&amp;#39; }}&lt;br/&gt;      tag-flag: ${{ !github.event.pull_request &amp;amp;&amp;amp; format(&amp;#39;--tag={0}&amp;#39;, github.ref_name) || &amp;#39;&amp;#39; }}&lt;br/&gt;      publishing: ${{ !github.event.pull_request }}&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;      - name: Install-deps&lt;br/&gt;        # we specify bash to get pipefail; it guards against the `curl` command&lt;br/&gt;        # failing. otherwise `sh` won&amp;#39;t catch that `curl` returned non-0&lt;br/&gt;        shell: bash&lt;br/&gt;        run: |&lt;br/&gt;          if [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;Linux&amp;#34; ]]; then&lt;br/&gt;            sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install -y pkg-config libdbus-1-dev protobuf-compiler&lt;br/&gt;          elif [[ &amp;#34;${{ runner.os }}&amp;#34; == &amp;#34;macOS&amp;#34; ]]; then&lt;br/&gt;            brew install protobuf&lt;br/&gt;          fi&lt;br/&gt;  plan:&lt;br/&gt;    needs:&lt;br/&gt;      - install-deps&lt;br/&gt;    runs-on: &amp;#34;ubuntu-22.04&amp;#34;&lt;br/&gt;    outputs:&lt;br/&gt;      val: ${{ steps.plan.outputs.manifest }}&lt;br/&gt;      tag: ${{ !github.event.pull_request &amp;amp;&amp;amp; github.ref_name || &amp;#39;&amp;#39; }}&lt;br/&gt;      tag-flag: ${{ !github.event.pull_request &amp;amp;&amp;amp; format(&amp;#39;--tag={0}&amp;#39;, github.ref_name) || &amp;#39;&amp;#39; }}&lt;br/&gt;      publishing: ${{ !github.event.pull_request }}&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;      - name: Install dist&lt;br/&gt;        # we specify bash to get pipefail; it guards against the `curl` command&lt;br/&gt;        # failing. otherwise `sh` won&amp;#39;t catch that `curl` returned non-0&lt;br/&gt;        shell: bash&lt;br/&gt;        run: &amp;#34;curl --proto &amp;#39;=https&amp;#39; --tlsv1.2 -LsSf &lt;a href=&#34;https://github.com/axodotdev/cargo-dist/releases/download/v0.30.3/cargo-dist-installer.sh&#34;&gt;https://github.com/axodotdev/cargo-dist/releases/download/v0.30.3/cargo-dist-installer.sh&lt;/a&gt; | sh&amp;#34;&lt;br/&gt;      - name: Cache dist&lt;br/&gt;        uses: actions/upload-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: cargo-dist-cache&lt;br/&gt;          path: ~/.cargo/bin/dist&lt;br/&gt;      # sure would be cool if github gave us proper conditionals...&lt;br/&gt;      # so here&amp;#39;s a doubly-nested ternary-via-truthiness to try to provide the best possible&lt;br/&gt;      # functionality based on whether this is a pull_request, and whether it&amp;#39;s from a fork.&lt;br/&gt;      # (PRs run on the *source* but secrets are usually on the *target* -- that&amp;#39;s *good*&lt;br/&gt;      # but also really annoying to build CI around when it needs secrets to work right.)&lt;br/&gt;      - id: plan&lt;br/&gt;        run: |&lt;br/&gt;          dist ${{ (!github.event.pull_request &amp;amp;&amp;amp; format(&amp;#39;host --steps=create --tag={0}&amp;#39;, github.ref_name)) || &amp;#39;plan&amp;#39; }} --output-format=json &amp;gt; plan-dist-manifest.json&lt;br/&gt;          echo &amp;#34;dist ran successfully&amp;#34;&lt;br/&gt;          cat plan-dist-manifest.json&lt;br/&gt;          echo &amp;#34;manifest=$(jq -c &amp;#34;.&amp;#34; plan-dist-manifest.json)&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;      - name: &amp;#34;Upload dist-manifest.json&amp;#34;&lt;br/&gt;        uses: actions/upload-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: artifacts-plan-dist-manifest&lt;br/&gt;          path: plan-dist-manifest.json&lt;br/&gt;&lt;br/&gt;  # Build and packages all the platform-specific things&lt;br/&gt;  build-local-artifacts:&lt;br/&gt;    name: build-local-artifacts (${{ join(matrix.targets, &amp;#39;, &amp;#39;) }})&lt;br/&gt;    # Let the initial task tell us to not run (currently very blunt)&lt;br/&gt;    needs:&lt;br/&gt;      - plan&lt;br/&gt;      - install-deps&lt;br/&gt;    if: ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix.include != null &amp;amp;&amp;amp; (needs.plan.outputs.publishing == &amp;#39;true&amp;#39; || fromJson(needs.plan.outputs.val).ci.github.pr_run_mode == &amp;#39;upload&amp;#39;) }}&lt;br/&gt;    strategy:&lt;br/&gt;      fail-fast: false&lt;br/&gt;      # Target platforms/runners are computed by dist in create-release.&lt;br/&gt;      # Each member of the matrix has the following arguments:&lt;br/&gt;      #&lt;br/&gt;      # - runner: the github runner&lt;br/&gt;      # - dist-args: cli flags to pass to dist&lt;br/&gt;      # - install-dist: expression to run to install dist on the runner&lt;br/&gt;      #&lt;br/&gt;      # Typically there will be:&lt;br/&gt;      # - 1 &amp;#34;global&amp;#34; task that builds universal installers&lt;br/&gt;      # - N &amp;#34;local&amp;#34; tasks that build each platform&amp;#39;s binaries and platform-specific installers&lt;br/&gt;      matrix: ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix }}&lt;br/&gt;    runs-on: ${{ matrix.runner }}&lt;br/&gt;    container: ${{ matrix.container &amp;amp;&amp;amp; matrix.container.image || null }}&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;      BUILD_MANIFEST_NAME: target/distrib/${{ join(matrix.targets, &amp;#39;-&amp;#39;) }}-dist-manifest.json&lt;br/&gt;    steps:&lt;br/&gt;      - name: enable windows longpaths&lt;br/&gt;        run: |&lt;br/&gt;          git config --global core.longpaths true&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;      - name: Install Rust non-interactively if not already installed&lt;br/&gt;        if: ${{ matrix.container }}&lt;br/&gt;        run: |&lt;br/&gt;          if ! command -v cargo &amp;gt; /dev/null 2&amp;gt;&amp;amp;1; then&lt;br/&gt;            curl --proto &amp;#39;=https&amp;#39; --tlsv1.2 -sSf &lt;a href=&#34;https://sh.rustup.rs&#34;&gt;https://sh.rustup.rs&lt;/a&gt; | sh -s -- -y&lt;br/&gt;            echo &amp;#34;$HOME/.cargo/bin&amp;#34; &amp;gt;&amp;gt; $GITHUB_PATH&lt;br/&gt;          fi&lt;br/&gt;      - name: Install dist&lt;br/&gt;        run: ${{ matrix.install_dist.run }}&lt;br/&gt;      # Get the dist-manifest&lt;br/&gt;      - name: Fetch local artifacts&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          pattern: artifacts-*&lt;br/&gt;          path: target/distrib/&lt;br/&gt;          merge-multiple: true&lt;br/&gt;      - name: Install dependencies&lt;br/&gt;        run: |&lt;br/&gt;          ${{ matrix.packages_install }}&lt;br/&gt;      - name: Build artifacts&lt;br/&gt;        run: |&lt;br/&gt;          # Actually do builds and make zips and whatnot&lt;br/&gt;          dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} &amp;gt; dist-manifest.json&lt;br/&gt;          echo &amp;#34;dist ran successfully&amp;#34;&lt;br/&gt;      - id: cargo-dist&lt;br/&gt;        name: Post-build&lt;br/&gt;        # We force bash here just because github makes it really hard to get values up&lt;br/&gt;        # to &amp;#34;real&amp;#34; actions without writing to env-vars, and writing to env-vars has&lt;br/&gt;        # inconsistent syntax between shell and powershell.&lt;br/&gt;        shell: bash&lt;br/&gt;        run: |&lt;br/&gt;          # Parse out what we just built and upload it to scratch storage&lt;br/&gt;          echo &amp;#34;paths&amp;lt;&amp;lt;EOF&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;          dist print-upload-files-from-manifest --manifest dist-manifest.json &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;          echo &amp;#34;EOF&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;&lt;br/&gt;          cp dist-manifest.json &amp;#34;$BUILD_MANIFEST_NAME&amp;#34;&lt;br/&gt;      - name: &amp;#34;Upload artifacts&amp;#34;&lt;br/&gt;        uses: actions/upload-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: artifacts-build-local-${{ join(matrix.targets, &amp;#39;_&amp;#39;) }}&lt;br/&gt;          path: |&lt;br/&gt;            ${{ steps.cargo-dist.outputs.paths }}&lt;br/&gt;            ${{ env.BUILD_MANIFEST_NAME }}&lt;br/&gt;&lt;br/&gt;  # Build and package all the platform-agnostic(ish) things&lt;br/&gt;  build-global-artifacts:&lt;br/&gt;    needs:&lt;br/&gt;      - plan&lt;br/&gt;      - install-deps&lt;br/&gt;      - build-local-artifacts&lt;br/&gt;    runs-on: &amp;#34;ubuntu-22.04&amp;#34;&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;      BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;      - name: Install cached dist&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: cargo-dist-cache&lt;br/&gt;          path: ~/.cargo/bin/&lt;br/&gt;      - run: chmod &#43;x ~/.cargo/bin/dist&lt;br/&gt;      # Get all the local artifacts for the global tasks to use (for e.g. checksums)&lt;br/&gt;      - name: Fetch local artifacts&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          pattern: artifacts-*&lt;br/&gt;          path: target/distrib/&lt;br/&gt;          merge-multiple: true&lt;br/&gt;      - id: cargo-dist&lt;br/&gt;        shell: bash&lt;br/&gt;        run: |&lt;br/&gt;          dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json &amp;#34;--artifacts=global&amp;#34; &amp;gt; dist-manifest.json&lt;br/&gt;          echo &amp;#34;dist ran successfully&amp;#34;&lt;br/&gt;&lt;br/&gt;          # Parse out what we just built and upload it to scratch storage&lt;br/&gt;          echo &amp;#34;paths&amp;lt;&amp;lt;EOF&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;          jq --raw-output &amp;#34;.upload_files[]&amp;#34; dist-manifest.json &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;          echo &amp;#34;EOF&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;&lt;br/&gt;          cp dist-manifest.json &amp;#34;$BUILD_MANIFEST_NAME&amp;#34;&lt;br/&gt;      - name: &amp;#34;Upload artifacts&amp;#34;&lt;br/&gt;        uses: actions/upload-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: artifacts-build-global&lt;br/&gt;          path: |&lt;br/&gt;            ${{ steps.cargo-dist.outputs.paths }}&lt;br/&gt;            ${{ env.BUILD_MANIFEST_NAME }}&lt;br/&gt;  # Determines if we should publish/announce&lt;br/&gt;  host:&lt;br/&gt;    needs:&lt;br/&gt;      - plan&lt;br/&gt;      - install-deps&lt;br/&gt;      - build-local-artifacts&lt;br/&gt;      - build-global-artifacts&lt;br/&gt;    # Only run if we&amp;#39;re &amp;#34;publishing&amp;#34;, and only if plan, local and global didn&amp;#39;t fail (skipped is fine)&lt;br/&gt;    if: ${{ always() &amp;amp;&amp;amp; needs.plan.result == &amp;#39;success&amp;#39; &amp;amp;&amp;amp; needs.plan.outputs.publishing == &amp;#39;true&amp;#39; &amp;amp;&amp;amp; (needs.build-global-artifacts.result == &amp;#39;skipped&amp;#39; || needs.build-global-artifacts.result == &amp;#39;success&amp;#39;) &amp;amp;&amp;amp; (needs.build-local-artifacts.result == &amp;#39;skipped&amp;#39; || needs.build-local-artifacts.result == &amp;#39;success&amp;#39;) }}&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;    runs-on: &amp;#34;ubuntu-22.04&amp;#34;&lt;br/&gt;    outputs:&lt;br/&gt;      val: ${{ steps.host.outputs.manifest }}&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;      - name: Install cached dist&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          name: cargo-dist-cache&lt;br/&gt;          path: ~/.cargo/bin/&lt;br/&gt;      - run: chmod &#43;x ~/.cargo/bin/dist&lt;br/&gt;      # Fetch artifacts from scratch-storage&lt;br/&gt;      - name: Fetch artifacts&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          pattern: artifacts-*&lt;br/&gt;          path: target/distrib/&lt;br/&gt;          merge-multiple: true&lt;br/&gt;      - id: host&lt;br/&gt;        shell: bash&lt;br/&gt;        run: |&lt;br/&gt;          dist host ${{ needs.plan.outputs.tag-flag }} --steps=upload --steps=release --output-format=json &amp;gt; dist-manifest.json&lt;br/&gt;          echo &amp;#34;artifacts uploaded and released successfully&amp;#34;&lt;br/&gt;          cat dist-manifest.json&lt;br/&gt;          echo &amp;#34;manifest=$(jq -c &amp;#34;.&amp;#34; dist-manifest.json)&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;br/&gt;      - name: &amp;#34;Upload dist-manifest.json&amp;#34;&lt;br/&gt;        uses: actions/upload-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          # Overwrite the previous copy&lt;br/&gt;          name: artifacts-dist-manifest&lt;br/&gt;          path: dist-manifest.json&lt;br/&gt;      # Create a GitHub Release while uploading all files to it&lt;br/&gt;      - name: &amp;#34;Download GitHub Artifacts&amp;#34;&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          pattern: artifacts-*&lt;br/&gt;          path: artifacts&lt;br/&gt;          merge-multiple: true&lt;br/&gt;      - name: Cleanup&lt;br/&gt;        run: |&lt;br/&gt;          # Remove the granular manifests&lt;br/&gt;          rm -f artifacts/*-dist-manifest.json&lt;br/&gt;      - name: Create GitHub Release&lt;br/&gt;        env:&lt;br/&gt;          PRERELEASE_FLAG: &amp;#34;${{ fromJson(steps.host.outputs.manifest).announcement_is_prerelease &amp;amp;&amp;amp; &amp;#39;--prerelease&amp;#39; || &amp;#39;&amp;#39; }}&amp;#34;&lt;br/&gt;          ANNOUNCEMENT_TITLE: &amp;#34;${{ fromJson(steps.host.outputs.manifest).announcement_title }}&amp;#34;&lt;br/&gt;          ANNOUNCEMENT_BODY: &amp;#34;${{ fromJson(steps.host.outputs.manifest).announcement_github_body }}&amp;#34;&lt;br/&gt;          RELEASE_COMMIT: &amp;#34;${{ github.sha }}&amp;#34;&lt;br/&gt;        run: |&lt;br/&gt;          # Write and read notes from a file to avoid quoting breaking things&lt;br/&gt;          echo &amp;#34;$ANNOUNCEMENT_BODY&amp;#34; &amp;gt; $RUNNER_TEMP/notes.txt&lt;br/&gt;&lt;br/&gt;          gh release create &amp;#34;${{ needs.plan.outputs.tag }}&amp;#34; --target &amp;#34;$RELEASE_COMMIT&amp;#34; $PRERELEASE_FLAG --title &amp;#34;$ANNOUNCEMENT_TITLE&amp;#34; --notes-file &amp;#34;$RUNNER_TEMP/notes.txt&amp;#34; artifacts/*&lt;br/&gt;&lt;br/&gt;  publish-homebrew-formula:&lt;br/&gt;    needs:&lt;br/&gt;      - plan&lt;br/&gt;      - host&lt;br/&gt;      - install-deps&lt;br/&gt;      - build-local-artifacts&lt;br/&gt;      - build-global-artifacts&lt;br/&gt;    runs-on: &amp;#34;ubuntu-22.04&amp;#34;&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;      PLAN: ${{ needs.plan.outputs.val }}&lt;br/&gt;      GITHUB_USER: &amp;#34;axo bot&amp;#34;&lt;br/&gt;      GITHUB_EMAIL: &amp;#34;admin&#43;bot@axo.dev&amp;#34;&lt;br/&gt;    if: ${{ !fromJson(needs.plan.outputs.val).announcement_is_prerelease || fromJson(needs.plan.outputs.val).publish_prereleases }}&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: true&lt;br/&gt;          repository: &amp;#34;gnostr-org/homebrew-gnostr&amp;#34;&lt;br/&gt;          token: ${{ secrets.HOMEBREW_TAP_TOKEN }}&lt;br/&gt;      # So we have access to the formula&lt;br/&gt;      - name: Fetch homebrew formulae&lt;br/&gt;        uses: actions/download-artifact@v4&lt;br/&gt;        with:&lt;br/&gt;          pattern: artifacts-*&lt;br/&gt;          path: Formula/&lt;br/&gt;          merge-multiple: true&lt;br/&gt;      # This is extra complex because you can make your Formula name not match your app name&lt;br/&gt;      # so we need to find releases with a *.rb file, and publish with that filename.&lt;br/&gt;      - name: Commit formula files&lt;br/&gt;        run: |&lt;br/&gt;          git config --global user.name &amp;#34;${GITHUB_USER}&amp;#34;&lt;br/&gt;          git config --global user.email &amp;#34;${GITHUB_EMAIL}&amp;#34;&lt;br/&gt;&lt;br/&gt;          for release in $(echo &amp;#34;$PLAN&amp;#34; | jq --compact-output &amp;#39;.releases[] | select([.artifacts[] | endswith(&amp;#34;.rb&amp;#34;)] | any)&amp;#39;); do&lt;br/&gt;            filename=$(echo &amp;#34;$release&amp;#34; | jq &amp;#39;.artifacts[] | select(endswith(&amp;#34;.rb&amp;#34;))&amp;#39; --raw-output)&lt;br/&gt;            name=$(echo &amp;#34;$filename&amp;#34; | sed &amp;#34;s/\.rb$//&amp;#34;)&lt;br/&gt;            version=$(echo &amp;#34;$release&amp;#34; | jq .app_version --raw-output)&lt;br/&gt;&lt;br/&gt;            export PATH=&amp;#34;/home/linuxbrew/.linuxbrew/bin:$PATH&amp;#34;&lt;br/&gt;            brew update&lt;br/&gt;            # We avoid reformatting user-provided data such as the app description and homepage.&lt;br/&gt;            brew style --except-cops FormulaAudit/Homepage,FormulaAudit/Desc,FormulaAuditStrict --fix &amp;#34;Formula/${filename}&amp;#34; || true&lt;br/&gt;&lt;br/&gt;            git add &amp;#34;Formula/${filename}&amp;#34;&lt;br/&gt;            git commit -m &amp;#34;${name} ${version}&amp;#34;&lt;br/&gt;          done&lt;br/&gt;          git push&lt;br/&gt;&lt;br/&gt;  announce:&lt;br/&gt;    needs:&lt;br/&gt;      - plan&lt;br/&gt;      - install-deps&lt;br/&gt;      - build-local-artifacts&lt;br/&gt;      - build-global-artifacts&lt;br/&gt;      - host&lt;br/&gt;      - publish-homebrew-formula&lt;br/&gt;    # use &amp;#34;always() &amp;amp;&amp;amp; ...&amp;#34; to allow us to wait for all publish jobs while&lt;br/&gt;    # still allowing individual publish jobs to skip themselves (for prereleases).&lt;br/&gt;    # &amp;#34;host&amp;#34; however must run to completion, no skipping allowed!&lt;br/&gt;    if: ${{ always() &amp;amp;&amp;amp; needs.host.result == &amp;#39;success&amp;#39; &amp;amp;&amp;amp; (needs.publish-homebrew-formula.result == &amp;#39;skipped&amp;#39; || needs.publish-homebrew-formula.result == &amp;#39;success&amp;#39;) }}&lt;br/&gt;    runs-on: &amp;#34;ubuntu-22.04&amp;#34;&lt;br/&gt;    env:&lt;br/&gt;      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}&lt;br/&gt;    steps:&lt;br/&gt;      - uses: actions/checkout@v4&lt;br/&gt;        with:&lt;br/&gt;          persist-credentials: false&lt;br/&gt;          submodules: recursive&lt;br/&gt;
    </content>
    <updated>2026-04-04T23:23:35&#43;02:00</updated>
  </entry>

</feed>