Development Artifact Cleanup: ✅ BROTHER_NODE REORGANIZATION: Moved development test node to appropriate location - dev/test-nodes/brother_node/: Moved from root directory for better organization - Contains development configuration, test logs, and test chain data - No impact on production systems - purely development/testing artifact ✅ DEVELOPMENT ARTIFACTS IDENTIFIED: - Chain ID: aitbc-brother-chain (test/development chain) - Ports: 8010 (P2P) and 8011 (RPC) - different from production - Environment: .env file with test configuration - Logs: rpc.log and node.log from development testing session (March 15, 2026) ✅ ROOT DIRECTORY CLEANUP: Removed development clutter from production directory - brother_node/ moved to dev/test-nodes/brother_node/ - Root directory now contains only production-ready components - Development artifacts properly organized in dev/ subdirectory DIRECTORY STRUCTURE IMPROVEMENT: 📁 dev/test-nodes/: Development and testing node configurations 🏗️ Root Directory: Clean production structure with only essential components 🧪 Development Isolation: Test environments separated from production BENEFITS: ✅ Clean Production Directory: No development artifacts in root ✅ Better Organization: Development nodes grouped in dev/ subdirectory ✅ Clear Separation: Production vs development environments clearly distinguished ✅ Maintainability: Easier to identify and manage development components RESULT: Successfully moved brother_node development artifact to dev/test-nodes/ subdirectory, cleaning up the root directory while preserving development testing environment for future use.
65 lines
3.3 KiB
TypeScript
Executable File
65 lines
3.3 KiB
TypeScript
Executable File
import { ExtPointType } from './abstract/edwards.js';
|
|
import { htfBasicOpts } from './abstract/hash-to-curve.js';
|
|
import { Hex } from './abstract/utils.js';
|
|
import { AffinePoint } from './abstract/curve.js';
|
|
export declare const ed448: import("./abstract/edwards.js").CurveFn;
|
|
export declare const ed448ph: import("./abstract/edwards.js").CurveFn;
|
|
export declare const x448: import("./abstract/montgomery.js").CurveFn;
|
|
/**
|
|
* Converts edwards448 public key to x448 public key. Uses formula:
|
|
* * `(u, v) = ((y-1)/(y+1), sqrt(156324)*u/x)`
|
|
* * `(x, y) = (sqrt(156324)*u/v, (1+u)/(1-u))`
|
|
* @example
|
|
* const aPub = ed448.getPublicKey(utils.randomPrivateKey());
|
|
* x448.getSharedSecret(edwardsToMontgomery(aPub), edwardsToMontgomery(someonesPub))
|
|
*/
|
|
export declare function edwardsToMontgomeryPub(edwardsPub: string | Uint8Array): Uint8Array;
|
|
export declare const edwardsToMontgomery: typeof edwardsToMontgomeryPub;
|
|
export declare const hashToCurve: (msg: Uint8Array, options?: htfBasicOpts | undefined) => import("./abstract/hash-to-curve.js").H2CPoint<bigint>;
|
|
export declare const encodeToCurve: (msg: Uint8Array, options?: htfBasicOpts | undefined) => import("./abstract/hash-to-curve.js").H2CPoint<bigint>;
|
|
type ExtendedPoint = ExtPointType;
|
|
/**
|
|
* Each ed448/ExtendedPoint has 4 different equivalent points. This can be
|
|
* a source of bugs for protocols like ring signatures. Decaf was created to solve this.
|
|
* Decaf point operates in X:Y:Z:T extended coordinates like ExtendedPoint,
|
|
* but it should work in its own namespace: do not combine those two.
|
|
* https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-ristretto255-decaf448
|
|
*/
|
|
declare class DcfPoint {
|
|
private readonly ep;
|
|
static BASE: DcfPoint;
|
|
static ZERO: DcfPoint;
|
|
constructor(ep: ExtendedPoint);
|
|
static fromAffine(ap: AffinePoint<bigint>): DcfPoint;
|
|
/**
|
|
* Takes uniform output of 112-byte hash function like shake256 and converts it to `DecafPoint`.
|
|
* The hash-to-group operation applies Elligator twice and adds the results.
|
|
* **Note:** this is one-way map, there is no conversion from point to hash.
|
|
* https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-ristretto255-decaf448-07#name-element-derivation-2
|
|
* @param hex 112-byte output of a hash function
|
|
*/
|
|
static hashToCurve(hex: Hex): DcfPoint;
|
|
/**
|
|
* Converts decaf-encoded string to decaf point.
|
|
* https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-ristretto255-decaf448-07#name-decode-2
|
|
* @param hex Decaf-encoded 56 bytes. Not every 56-byte string is valid decaf encoding
|
|
*/
|
|
static fromHex(hex: Hex): DcfPoint;
|
|
/**
|
|
* Encodes decaf point to Uint8Array.
|
|
* https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-ristretto255-decaf448-07#name-encode-2
|
|
*/
|
|
toRawBytes(): Uint8Array;
|
|
toHex(): string;
|
|
toString(): string;
|
|
equals(other: DcfPoint): boolean;
|
|
add(other: DcfPoint): DcfPoint;
|
|
subtract(other: DcfPoint): DcfPoint;
|
|
multiply(scalar: bigint): DcfPoint;
|
|
multiplyUnsafe(scalar: bigint): DcfPoint;
|
|
}
|
|
export declare const DecafPoint: typeof DcfPoint;
|
|
export declare const hashToDecaf448: (msg: Uint8Array, options: htfBasicOpts) => DcfPoint;
|
|
export declare const hash_to_decaf448: (msg: Uint8Array, options: htfBasicOpts) => DcfPoint;
|
|
export {};
|
|
//# sourceMappingURL=ed448.d.ts.map
|