You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any Data is named with it's hash, any modification will change its name. This is a key design, it will ensure that the data you reference has not been tampered with.
Named Data
Any data named in this way is called Named Data.
Named Object
Data is divided into structured data and unstructured data, and structured data is called Object, Any Object named in this way is called Named Object.
Immutable and mutable
In principle, Object is immutable, if you need to change it, create a new object.
But for convenience, there is a design to modify it:
The content of Object is split into two parts:
Desc: immutable, the ObjectId is calculate with this part.the size is limmited at 64KBytes.
Body: mutable, It has nothing to do with ObjectId. We can update the body without modify the ObjectId. Therefore, developers must consider how to ensure that the Body is the version we need.
ObjectId structure
Area
Every object should belong to a different Area, and accept the legal supervision of the corresponding Area.
country: 9bits
carrier: 4bits
city: 13bits
inner: 8bits // set by the creator.
ObjectType
Any Object requires a field that explicitly specifies its type, it's ObjectType.
All types are divided into 4 categories:
Standuard: It's the basic types defined in cyfs-base. Collected in the module cyfs-base.
Core: Objects with general semantics gradually formed during the development of CYFS. Collected in the module cyfs-core.
DecAppObject: Objects defined by an application developer to solve a specific problem in a specific application.
Data: Short immediate value object.
ObjectId structure
The name of a Named Object is ObjectId.
The main component of ObjectId is the SHA256 of ObjectDesc, It also contains the type and area information.The total length is 32Bytes(256bits).
An object is said to be entitled object if it can provide proof of the authenticity of another object.It can be the owner of an object to own it.A common method of proof is the signature, so, most entitled object contains a key-pair,for example:People and Device.but a Group contains many People as the members, Its proof requires the signature of a majority of members.
Owned object
An object is said to be owned object if it's created with a owner, most public object is owned object,Any object of external origin without owner and signature is untrusted.
Owner is contained in the ObjectDesc, it's immutable field, it's always the creator.
Right to profit
The Owner is immutable, but there are many tradable objects(for example: NFT). the updated property is the Right to profit, that usually occurs on the chain. The immutable Owner strongly protects the copyright of the objects.
The text was updated successfully, but these errors were encountered:
Named data and data property rights
Named data
Any Data is named with it's hash, any modification will change its name. This is a key design, it will ensure that the data you reference has not been tampered with.
Any data named in this way is called
Named Data
.Data is divided into structured data and unstructured data, and structured data is called
Object
, AnyObject
named in this way is calledNamed Object
.In principle, Object is immutable, if you need to change it, create a new object.
But for convenience, there is a design to modify it:
The content of
Object
is split into two parts:ObjectId
is calculate with this part.the size is limmited at 64KBytes.ObjectId
. We can update the body without modify theObjectId
. Therefore, developers must consider how to ensure that the Body is the version we need.ObjectId structure
Every object should belong to a different
Area
, and accept the legal supervision of the correspondingArea
.Any Object requires a field that explicitly specifies its type, it's ObjectType.
All types are divided into 4 categories:
cyfs-base
. Collected in the modulecyfs-base
.cyfs-core
.The name of a
Named Object
isObjectId
.The main component of
ObjectId
is theSHA256
ofObjectDesc
, It also contains the type and area information.The total length is 32Bytes(256bits).The structure is as follow:
Data property rights
An object is said to be
entitled object
if it can provide proof of the authenticity of another object.It can be the owner of an object to own it.A common method of proof is the signature, so, mostentitled object
contains a key-pair,for example:People
andDevice
.but aGroup
contains manyPeople
as themembers
, Its proof requires the signature of a majority of members.An object is said to be
owned object
if it's created with a owner, most public object isowned object
,Any object of external origin without owner and signature is untrusted.Owner
is contained in theObjectDesc
, it's immutable field, it's always the creator.The
Owner
is immutable, but there are many tradable objects(for example: NFT). the updated property is theRight to profit
, that usually occurs on the chain. The immutableOwner
strongly protects thecopyright
of the objects.The text was updated successfully, but these errors were encountered: