concept system in category hyperledger

appears as: system, systems, system, The system
Programming Hyperledger Fabric: Creating Permissioned Blockchains

This is an excerpt from Manning's book Programming Hyperledger Fabric: Creating Permissioned Blockchains.

  • How can the system ensure that a transaction cannot be changed or hacked while in transit?
  • How can the system ensure that all bookkeepers' copies are identical to each other?
  • How can the system ensure that every transaction makes it to the bookkeepers? In other words, how to make sure that transactions are not lost?
  • How can the system ensure the ledger (or copies of it) cannot be hacked?
  • Listing 3.3 The create method to create an asset in the system
    @Transaction()                                                          #1
    public async create(ctx: Context, assetId: string,
        metadata: string):                                                  #2
        Promise<void> {                                                     #3
            const mspId = ctx.clientIdentity.getMSPID();                    #4
            if (mspId !== "BiotorMSP") {
                throw new Error("you do not have permission to create an
                   asset");
            }
    
            const exists =
                await this.assetExists(ctx, assetId);                       #5
            if (exists) {
                throw new Error(`The asset ${assetId} already exists`);
            }
    
            const asset = new Asset();
            asset.id = assetId;
            asset.owner = mspId;
            asset.metadata = metadata;
            asset.createdBy = asset.lastModifiedBy =
                     ctx.clientIdentity.getID();                            #6
            const buffer =
                Buffer.from(JSON.stringify(asset));                         #7
            await ctx.stub.putState(assetId, buffer);                       #8
    }