검증은 쉬우나, 블록 생성이 어렵다.
동시에 여러곳에서 블록이 생성되면, 체인의 길이가
길어진쪽이 옳은 체인이 된다.
이 옳은 체인이 다른 체인에서 일어났던 거래 내역을
덮어 씌워버리기 때문에 다른 체인의 거래내역이 사
라진다.
트랜젝션은 수수료를 많이 낼 수록, 채굴자들은 더
많은 수수료를 받고 싶어 하기에, 더 빠르게 블록에
에 들어간다. 즉, 더 빠른 송금이 가능하다는 것.
수수료가 없는 or 낮은 트랜젝션 요청은? 블록 헤
더의 시간 기록에 따라 수수료가 없어도 다 블록에
담기게 된다.
camelCase 띄어쓰기를 할 수 없는 특성상, 가독성 좋게 띄어쓰는 부분마다 대문자를 사용.
믹스인은 함수와 비슷하게 동작을 하는 문법.
CSS 의 스타일 시트에서 반복적으로 재사용할 스타일들을 정의.
정의 해둔다면 반복되는곳에서 계속 사용할 수 있다.
정의)
@mixin 지정할 이름("매개변수") {CSS 스타일}
example)
@mixin textColor("tablet") { background-color : pink; }
호출)
@include 지정한 이름("인수");
example)
@include textColor("tablet");
호출)
@extend (가져올 스타일);
.btn { display: inline-block; min-width: 60px; }
.btn-white { @extend .btn; backgroud-color: white; }
위 처럼 사용한다.
const TRUE = true;
const FALSE = false;
// && AND
console.log(TRUE && TRUE);
console.log(TRUE && FALSE);
console.log(FALSE && TRUE);
console.log(FALSE && FALSE);
// || OR
console.log(TRUE || TRUE);
console.log(TRUE || FALSE);
console.log(FALSE || TRUE);
console.log(FALSE || FALSE);
// ! NOT
console.log(!TRUE);
console.log(!FALSE);
And : false 우선
Or : True 우선
Not : 반대
{
"name": "ato",
"description": "Cute Cat",
"image": "https://i.postimg.cc/rFfLCr9r/Kakao-Talk-20230321-170004557.jpg",
"attributes": [
{
"trait_type": "Skin",
"value": "White"
},
{
"trait_type": "Background",
"value": "House"
}
]
}
Name : NFT 의 이름.
Description : 주제
Image : 이미지 원본 파일 링크
Attributes : 속성. 대괄호 안에 넣음.
Transit_type,Value : 특징들을 넣어줌